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
NULL Fatal error: Uncaught Error: Class 'Bar' not found in /in/jDCj8:4 Stack trace: #0 [internal function]: handler() #1 {main} thrown in /in/jDCj8 on line 4
Process exited with code 255.
Output for hhvm-3.10.0 - 3.12.0
NULL Fatal error: Class undefined: Bar in /in/jDCj8 on line 4
Process exited with code 255.
Output for 5.2.0 - 5.3.29, 5.4.7 - 5.6.28
NULL Fatal error: Class 'Bar' not found in /in/jDCj8 on line 4
Process exited with code 255.
Output for 5.4.0 - 5.4.6
NULL Fatal error: Class 'Bar' not found in /in/jDCj8 on line 4
Output for 5.0.0 - 5.1.6
Fatal error: Call to undefined function error_get_last() in /in/jDCj8 on line 3
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: error_get_last() in /in/jDCj8 on line 3
Process exited with code 255.
Output for 4.3.3 - 4.4.4
Fatal error: Call to undefined function: error_get_last() in /in/jDCj8 on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.2
Fatal error: Call to undefined function: error_get_last() in /in/jDCj8 on line 3