3v4l.org

run code in 300+ PHP versions simultaneously
<?php try { throw 1; } catch ($e) { var_dump($e); }
Output for 5.5.24 - 5.5.30, 5.6.8 - 5.6.16, 7.0.0
Parse error: syntax error, unexpected '$e' (T_VARIABLE), expecting identifier (T_STRING) or namespace (T_NAMESPACE) or \\ (T_NS_SEPARATOR) in /in/JpmG0 on line 5
Process exited with code 255.

preferences:
181.06 ms | 1387 KiB | 24 Q