3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(is_callable('f')); $a = null; call_user_func('f');
Output for 5.3.0 - 7.1.0
bool(false) Warning: call_user_func() expects parameter 1 to be a valid callback, function 'f' not found or invalid function name in /in/I0idr on line 4
Output for 4.3.2 - 5.2.17
bool(false) Warning: call_user_func(f): First argument is expected to be a valid callback in /in/I0idr on line 4
Output for 4.3.0 - 4.3.1
bool(false) Warning: call_user_func(f) [http://www.php.net/function.call-user-func]: First argument is expected to be a valid callback in /in/I0idr on line 4