3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php namespace Foo { function __lambda_func() { return print 'no'; } } namespace Bar { function yuno($x) { $x(); } } namespace { Bar\yuno(function() { return print 'OK'; }); $fn = create_function("", "return 'OK';"); var_dump($fn()); }
based on BuViW
Output for 7.2.0
OK Deprecated: Function create_function() is deprecated in /in/gUCm0 on line 19 string(2) "OK"
Output for 5.3.19 - 7.1.10
OKstring(2) "OK"