3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function a() { throw new \Exception('dupa'); } function b() { try { a(); } finally { echo 'finally'; } } b();
based on osDOl
Output for 7.0.0 - 7.2.0
finally Fatal error: Uncaught Exception: dupa in /in/oPSFl:5 Stack trace: #0 /in/oPSFl(10): a() #1 /in/oPSFl(17): b() #2 {main} thrown in /in/oPSFl on line 5
Process exited with code 255.
Output for 5.5.24 - 5.6.28
finally Fatal error: Uncaught exception 'Exception' with message 'dupa' in /in/oPSFl:5 Stack trace: #0 /in/oPSFl(10): a() #1 /in/oPSFl(17): b() #2 {main} thrown in /in/oPSFl on line 5
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/oPSFl on line 12
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/oPSFl on line 12
Process exited with code 255.