3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $fn = create_function('$x','return $x; } $foo = 42; function foo($int) { return $int; '); echo foo($fn($foo));
Output for 4.3.0 - 7.1.0
42