3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php try { echo "1"; throw new \Exception(); } finally { echo "2"; } echo "3";
Output for 7.0.0 - 7.2.0
12 Fatal error: Uncaught Exception in /in/SoNVo:5 Stack trace: #0 {main} thrown in /in/SoNVo on line 5
Process exited with code 255.
Output for 5.5.24 - 5.6.28
12 Fatal error: Uncaught exception 'Exception' in /in/SoNVo:5 Stack trace: #0 {main} thrown in /in/SoNVo on line 5
Process exited with code 255.
Output for 5.4.12 - 5.4.45
Parse error: syntax error, unexpected 'finally' (T_STRING), expecting catch (T_CATCH) in /in/SoNVo on line 6
Process exited with code 255.
Output for 5.3.22 - 5.3.29
Parse error: syntax error, unexpected T_STRING, expecting T_CATCH in /in/SoNVo on line 6
Process exited with code 255.