3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $fn = function() { echo 'hi world'; }; $refl = new \ReflectionFunction($fn); echo eval($refl->__toString());
based on AjBVd
Output for 7.1.0 - 7.3.0beta1
Parse error: syntax error, unexpected '<', expecting ']' in /in/SYs2p(7) : eval()'d code on line 1
Process exited with code 255.
Output for hhvm-3.22.0
Fatal error: syntax error, unexpected '<', expecting ']' in /in/SYs2p(-1)(33751a238ad0682d17a7de8f2c752640) : eval()'d code on line -1
Output for hhvm-3.18.5 - 3.21.3
Fatal error: syntax error, unexpected '<', expecting ']' in /in/SYs2p(7)(33751a238ad0682d17a7de8f2c752640) : eval()'d code on line 1
Output for 5.6.0 - 5.6.30
Parse error: syntax error, unexpected '<', expecting ']' in /in/SYs2p(7) : eval()'d code on line 1