3v4l.org

run code in 300+ PHP versions simultaneously
<?php $v = 1; try{ $v->sdf(); }(Throwable $e) {}
Output for 7.0.0 - 7.0.11
Parse error: syntax error, unexpected '$e' (T_VARIABLE) in /in/VhY4G on line 6
Process exited with code 255.
Output for 5.6.0 - 5.6.26
Fatal error: Cannot use try without catch or finally in /in/VhY4G on line 6
Process exited with code 255.

preferences:
172.2 ms | 1394 KiB | 46 Q