3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php register_shutdown_function('fatalHandler'); function fatalHandler() { echo "fatal handler\n"; } try { trigger_error("Fatal error", E_USER_ERROR); } catch (Exception $e) { echo "exception\n"; } finally { echo "finally\n"; }
Output for 5.5.0 - 5.6.28, hhvm-3.10.0, 7.0.0 - 7.1.0
Fatal error: Fatal error in /in/OlF5J on line 10 fatal handler
Process exited with code 255.
Output for hhvm-3.12.0 - 3.13.2
finally Fatal error: Uncaught Error: Fatal error in /in/OlF5J:10 Stack trace: #0 {main} fatal handler
Process exited with code 255.
Output for 5.1.0 - 5.4.45
Parse error: syntax error, unexpected '{' in /in/OlF5J on line 17
Process exited with code 255.
Output for 5.0.0 - 5.0.5
Parse error: parse error, unexpected '{' in /in/OlF5J on line 17
Process exited with code 255.
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected '{' in /in/OlF5J on line 9
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1
Parse error: parse error, unexpected '{' in /in/OlF5J on line 9
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/OlF5J on line 9
Process exited with code 255.