3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = function () { return $this}; var_dump($foo());
Output for 7.1.0 - 7.1.14, 7.2.0 - 7.2.2
Parse error: syntax error, unexpected '}', expecting ';' in /in/1PQoE on line 3
Process exited with code 255.

preferences:
162.08 ms | 1395 KiB | 25 Q