3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php try { throw new Exception("lol"); } finally { echo "lol2"; }
based on VGGS8
Output for 7.0.0 - 7.2.0
lol2 Fatal error: Uncaught Exception: lol in /in/L3DXM:4 Stack trace: #0 {main} thrown in /in/L3DXM on line 4
Process exited with code 255.
Output for 5.5.24 - 5.6.28
lol2 Fatal error: Uncaught exception 'Exception' with message 'lol' in /in/L3DXM:4 Stack trace: #0 {main} thrown in /in/L3DXM on line 4
Process exited with code 255.
Output for 5.4.9 - 5.4.45
Parse error: syntax error, unexpected 'finally' (T_STRING), expecting catch (T_CATCH) in /in/L3DXM 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/L3DXM on line 5
Process exited with code 255.