3v4l.org

run code in 300+ PHP versions simultaneously
<?php $goal = function($al = null, $go = null) use (&$goal) { if (!isset($go)) $go = 'go' else $go .= 'o'; if (!isset($al)) return function ($al) use (&$go) { return $goal($al, $go); }; return $go.$al; }; echo $goal('al');
Output for 5.4.0 - 5.4.31
Parse error: syntax error, unexpected 'else' (T_ELSE) in /in/JpWVd on line 5
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_ELSE in /in/JpWVd on line 5
Process exited with code 255.

preferences:
184.21 ms | 1395 KiB | 68 Q