3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function inserisci($arg1, $arg2, $arg3) { return $arg1 + $arg2 + $arg3; }; $addendi = array(100, 200, 300); var_dump(call_user_func_array($func, $addendi)); ?>
Output for 5.3.0 - 5.6.28, 7.0.0 - 7.1.0
Notice: Undefined variable: func in /in/cV75F on line 6 Warning: call_user_func_array() expects parameter 1 to be a valid callback, no array or string given in /in/cV75F on line 6 NULL
Output for hhvm-3.10.0 - 3.12.0
Notice: Undefined variable: func in /in/cV75F on line 6 Warning: Invalid argument: function: not string, closure, or array in /in/cV75F on line 6 NULL
Output for 5.0.4 - 5.2.17
Notice: Undefined variable: func in /in/cV75F on line 6 Warning: call_user_func_array(): First argument is expected to be a valid callback, '' was given in /in/cV75F on line 6 NULL
Output for 5.0.0 - 5.0.3
Notice: Undefined variable: func in /in/cV75F on line 6 Warning: call_user_func_array(): First argument is expected to be a valid callback, '' was given in /in/cV75F on line 6 NULL
Output for 4.3.2 - 4.4.9
Notice: Undefined variable: func in /in/cV75F on line 6 Warning: call_user_func_array(): First argumented is expected to be a valid callback, '' was given in /in/cV75F on line 6 NULL
Output for 4.3.0 - 4.3.1
Notice: Undefined variable: func in /in/cV75F on line 6 Warning: call_user_func_array() [http://www.php.net/function.call-user-func-array]: First argumented is expected to be a valid callback, '' was given in /in/cV75F on line 6 NULL