3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $f = function () { return; echo 1; }; $f(); ?> <?php $f = function () { echo 2; }; $f(); ?>
Output for 5.3.3 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
2
Output for 5.2.14 - 5.2.17
Parse error: syntax error, unexpected T_FUNCTION in /in/EsNA8 on line 2
Process exited with code 255.