Your code is right, it'll display errors just by telling it to, but it'll only show errors of certain types, it wont show parse errors. If this is a parse error it'll be silenced until you enable it in your PHP.ini, it may be automatically disabled by your Web Server, but I know some web servers do enable it.
Its worth checking though, head over to your PHP installation path and check your php.ini
Look for this line:
display_errors =
and make sure it follows with On
Might be also good to have a look at this:
https://secure.php.net/manual/en/function.error-reporting.php
Also information on a 500 errors, explaining what it is and how to fix it is also here:
https://www.lifewire.com/500-internal-server-error-explained-2622938