3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php try { echo "1\n"; throw Exception(""); } catch ($e Exception) { echo "2\n"; } finally { echo "3\n"; }
Output for 5.4.0 - 5.4.29
Parse error: syntax error, unexpected '$e' (T_VARIABLE), expecting identifier (T_STRING) or namespace (T_NAMESPACE) or \\ (T_NS_SEPARATOR) in /in/jDnXd on line 6
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_VARIABLE, expecting T_STRING or T_NAMESPACE or T_NS_SEPARATOR in /in/jDnXd on line 6
Process exited with code 255.