3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php try { echo "Throwing..."; throw new Exception("Test"); echo "Unreachable..."; } finally { echo "Finally..."; } echo "Also unreachable...";
Output for 7.0.0 - 7.3.0rc3
Throwing...Finally... Fatal error: Uncaught Exception: Test in /in/4BQkp:6 Stack trace: #0 {main} thrown in /in/4BQkp on line 6
Process exited with code 255.
Output for hhvm-3.22.0
Throwing...Finally... Fatal error: Uncaught exception 'Exception' with message 'Test' in /in/4BQkp:-1 Stack trace: #0 {main}
Process exited with code 255.
Output for hhvm-3.15.4 - 3.21.3
Throwing...Finally... Fatal error: Uncaught exception 'Exception' with message 'Test' in /in/4BQkp:6 Stack trace: #0 {main}
Process exited with code 255.
Output for 5.5.0 - 5.6.30
Throwing...Finally... Fatal error: Uncaught exception 'Exception' with message 'Test' in /in/4BQkp:6 Stack trace: #0 {main} thrown in /in/4BQkp on line 6
Process exited with code 255.
Output for 5.4.45
Parse error: syntax error, unexpected 'finally' (T_STRING), expecting catch (T_CATCH) in /in/4BQkp on line 9
Process exited with code 255.
Output for 5.1.6 - 5.3.29
Parse error: syntax error, unexpected T_STRING, expecting T_CATCH in /in/4BQkp on line 9
Process exited with code 255.
Output for 5.0.1
Parse error: parse error, unexpected T_STRING, expecting T_CATCH in /in/4BQkp on line 9
Process exited with code 255.
Output for 4.4.9
Parse error: syntax error, unexpected '{' in /in/4BQkp on line 4
Process exited with code 255.