3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = ''; $a = &function () use ($a) { };
Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.6
Parse error: syntax error, unexpected 'function' (T_FUNCTION) in /in/oqS87 on line 5
Process exited with code 255.

preferences:
172.7 ms | 1395 KiB | 35 Q