3v4l.org

run code in 300+ PHP versions simultaneously
<?php try { echo "1\n"; throw Exception(""); } catch ($e) { 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/G9Rtl 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/G9Rtl on line 6
Process exited with code 255.

preferences:
198.56 ms | 1395 KiB | 66 Q