Do note that, specifically in Denmark, you can do a 4+4, where you do a 4 year bachelor/master and a 4 year PhD, instead of the regular 3 year bachelor, 2 year master and then 3 year PhD. Here you'd have to apply for the PhD well before entering the university, or at least whist doing the bachelor studies.