You're missing a ) on line 40, because you start two (
@enigma_dev In the past it was no problem to use an opening tag. It's not a big problem, but if you're, in my case, learning students PHP, you have to learn them the correct syntaxis. If you combine PHP with HTML, an opening tag is needed.
It would be great if in repl.it the use of an opening tag is optional, not 'forbidden'.
It's great if you would report that highlighting bug! How do I mark your answer as the correct answer? I'm new at the forum. ;-)