3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function handler() { var_dump($error_get_last); new Bar(); } register_shutdown_function('handler');
Output for 7.0.0 - 7.1.0
Notice: Undefined variable: error_get_last in /in/vg4d5 on line 3 NULL Fatal error: Uncaught Error: Class 'Bar' not found in /in/vg4d5:4 Stack trace: #0 [internal function]: handler() #1 {main} thrown in /in/vg4d5 on line 4
Process exited with code 255.
Output for 5.0.4 - 5.3.29, 5.4.7 - 5.6.28
Notice: Undefined variable: error_get_last in /in/vg4d5 on line 3 NULL Fatal error: Class 'Bar' not found in /in/vg4d5 on line 4
Process exited with code 255.
Output for 5.4.0 - 5.4.6
Notice: Undefined variable: error_get_last in /in/vg4d5 on line 3 NULL Fatal error: Class 'Bar' not found in /in/vg4d5 on line 4
Output for 5.0.0 - 5.0.3
Notice: Undefined variable: error_get_last in /in/vg4d5 on line 3 NULL Fatal error: Class 'Bar' not found in /in/vg4d5 on line 4
Process exited with code 255.
Output for 4.3.3 - 4.4.9
Notice: Undefined variable: error_get_last in /in/vg4d5 on line 3 NULL Fatal error: Cannot instantiate non-existent class: bar in /in/vg4d5 on line 4
Process exited with code 255.
Output for 4.3.0 - 4.3.2
Notice: Undefined variable: error_get_last in /in/vg4d5 on line 3 NULL Fatal error: Cannot instantiate non-existent class: bar in /in/vg4d5 on line 4