3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function shutdown() { var_dump(error_get_last()); } register_shutdown_function('shutdown'); throw new Exception('ololo');
Output for 7.0.0 - 7.1.0
Fatal error: Uncaught Exception: ololo in /in/WAujv:10 Stack trace: #0 {main} thrown in /in/WAujv on line 10 array(4) { ["type"]=> int(1) ["message"]=> string(73) "Uncaught Exception: ololo in /in/WAujv:10 Stack trace: #0 {main} thrown" ["file"]=> string(9) "/in/WAujv" ["line"]=> int(10) }
Process exited with code 255.
Output for 5.2.0 - 5.6.28
Fatal error: Uncaught exception 'Exception' with message 'ololo' in /in/WAujv:10 Stack trace: #0 {main} thrown in /in/WAujv on line 10 array(4) { ["type"]=> int(1) ["message"]=> string(99) "Uncaught exception 'Exception' with message 'ololo' in /in/WAujv:10 Stack trace: #0 {main} thrown" ["file"]=> string(9) "/in/WAujv" ["line"]=> int(10) }
Process exited with code 255.
Output for 5.0.0 - 5.0.2, 5.0.5 - 5.1.6
Fatal error: Uncaught exception 'Exception' with message 'ololo' in /in/WAujv:10 Stack trace: #0 {main} thrown in /in/WAujv on line 10 Fatal error: Call to undefined function error_get_last() in /in/WAujv on line 5
Process exited with code 255.
Output for 5.0.3 - 5.0.4
Fatal error: Uncaught exception 'Exception' with message 'ololo' in /in/WAujv:10 Stack trace: #0 /in/WAujv(10): unknown() #1 {main} thrown in /in/WAujv on line 10 Fatal error: Call to undefined function error_get_last() in /in/WAujv on line 5
Process exited with code 255.
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected T_NEW in /in/WAujv on line 10
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1
Parse error: parse error, unexpected T_NEW in /in/WAujv on line 10
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/WAujv on line 10
Process exited with code 255.