3v4l.org

run code in 300+ PHP versions simultaneously
<?php for ($i = 1; $i < 10; $i++) { $functions[$i] = function ($a) yse ($i) { return $a + $i; } } echo $functions[4](7);
Output for 5.4.0 - 5.4.28
Parse error: syntax error, unexpected 'yse' (T_STRING), expecting '{' in /in/uDQ6K on line 4
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_STRING, expecting '{' in /in/uDQ6K on line 4
Process exited with code 255.

preferences:
182.43 ms | 1395 KiB | 65 Q