3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php try { throw new Exception('ahh'); } finally { echo 'hello'; }
Output for 7.0.0 - 7.2.0
hello Fatal error: Uncaught Exception: ahh in /in/nQDpe:4 Stack trace: #0 {main} thrown in /in/nQDpe on line 4
Process exited with code 255.
Output for 5.5.24 - 5.6.28
hello Fatal error: Uncaught exception 'Exception' with message 'ahh' in /in/nQDpe:4 Stack trace: #0 {main} thrown in /in/nQDpe on line 4
Process exited with code 255.
Output for 5.4.0 - 5.4.45
Parse error: syntax error, unexpected 'finally' (T_STRING), expecting catch (T_CATCH) in /in/nQDpe on line 5
Process exited with code 255.
Output for 5.3.19 - 5.3.29
Parse error: syntax error, unexpected T_STRING, expecting T_CATCH in /in/nQDpe on line 5
Process exited with code 255.