3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function a() { try { throw new Exception('hey'); } finally { return true; } } try { echo a(); } catch(Exception $e) { echo "EXCEPT!"; }
based on nk3Hn
Output for 5.5.24 - 7.2.6
1
Output for 5.4.12 - 5.4.45
Parse error: syntax error, unexpected 'finally' (T_STRING), expecting catch (T_CATCH) in /in/X2N5K on line 7
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/X2N5K on line 7
Process exited with code 255.