3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php call_user_func('function () { return "asd";}');
Output for 5.3.0 - 7.2.0
Warning: call_user_func() expects parameter 1 to be a valid callback, function 'function () { return "asd";}' not found or invalid function name in /in/NuDQG on line 3
Output for 4.3.2 - 5.2.17
Warning: call_user_func(function () { return "asd";}): First argument is expected to be a valid callback in /in/NuDQG on line 3
Output for 4.3.0 - 4.3.1
Warning: call_user_func(function () { return "asd";}) [http://www.php.net/function.call-user-func]: First argument is expected to be a valid callback in /in/NuDQG on line 3