3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function shutdown() { // This is our shutdown function, in // here we can do any last operations // before the script is complete. echo 'Script executed with success', PHP_EOL; } register_shutdown_function('shutdown'); trigger_error("Fatal error", E_USER_ERROR);
based on dPpnP
Output for 4.3.10 - 4.4.9, 5.0.2 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
Fatal error: Fatal error in /in/Spf2U on line 13 Script executed with success
Process exited with code 255.
Output for hhvm-3.10.0

Process exited with code 153.
Output for 4.3.2 - 4.3.9, 5.0.0 - 5.0.1
Fatal error: Fatal error in /in/Spf2U on line 13 Script executed with success Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/Spf2U on line 9 PHP_EOL
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Fatal error in /in/Spf2U on line 13 Script executed with success Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/Spf2U on line 9 PHP_EOL