3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $fn = create_function( '$x', 'return $x; } $foo = 42; function foo($int) { return $int; ' ); echo foo($fn($fooo));
Output for 7.2.0
Deprecated: Function create_function() is deprecated in /in/CPtd1 on line 4 Notice: Undefined variable: fooo in /in/CPtd1 on line 7
Output for 5.0.4 - 7.1.10
Notice: Undefined variable: fooo in /in/CPtd1 on line 7
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: fooo in /in/CPtd1 on line 7