3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function create_function2($args, $content) { static $counter = 0; $funcname = '_lambda_' . (++$counter); eval("function {$funcname} ({$args}) { {$content}; }"); } $f = create_function('$a,$b', 'return $a+$b;'); $f(1,2);
Output for 7.2.0
Deprecated: Function create_function() is deprecated in /in/fbRZj on line 9
Output for 4.3.0 - 7.1.10