given the following script
I get the expected
If forcing php to show error on run time doesn't work for you, you may try other options like setting it in php.ini instead:
error_reporting = E_ALL | E_STRICT display_errors: On
Good Luck!