3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_export(function($foo) { return $foo; });
Output for 5.3.0 - 5.6.28, 7.0.0 - 7.1.0
Closure::__set_state(array( ))
Output for hhvm-3.12.0
'Closure$;1878465460$64920c8f6e531f096da4a3fb84378475$'
Output for hhvm-3.10.0
'Closure$;1878465460$6b0916e972895e4c161624f0b187293$'
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.2.17
Parse error: syntax error, unexpected T_FUNCTION, expecting ')' in /in/voNqd on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected T_FUNCTION, expecting ')' in /in/voNqd on line 3
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error, expecting `')'' in /in/voNqd on line 3
Process exited with code 255.