This would be illegal in Germany, where it is legally required that there are 11 hours of resting period between work days, or work and school. So students and workers can not work later than 9pm if they start at 8pm on the next day.
There were similar laws in my US state 30 years ago when they would have applied to me. I was limited in the hours, and needed a permit from my school to be employed at all.