3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function bar() { try { echo "1\n"; } finally { try { throw new Exception(""); } catch (Exception $ab) { echo "2\n"; } finally { echo "3\n"; } echo "4\n"; } echo "5\n"; } bar();<?php var_export(filter_var(false, FILTER_VALIDATE_BOOLEAN, FILTER_NULL_ON_FAILURE ));
Output for 5.4.0 - 5.4.29
Parse error: syntax error, unexpected 'finally' (T_STRING), expecting catch (T_CATCH) in /in/vZJfM on line 5
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_STRING, expecting T_CATCH in /in/vZJfM on line 5
Process exited with code 255.