3v4l.org

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

Process exited with code 137.
Output for hhvm-3.10.0
Notice: Undefined variable: foo in /in/JsoSp on line 7