3v4l.org

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