3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function my_name($name) { return ucfirst($name); } var_dump(@call_user_func("my_name"));
Output for 7.1.0
Fatal error: Uncaught ArgumentCountError: Too few arguments to function my_name(), 0 passed in /in/TmvQg on line 7 and exactly 1 expected in /in/TmvQg:2 Stack trace: #0 /in/TmvQg(7): my_name() #1 {main} thrown in /in/TmvQg on line 2
Process exited with code 255.
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.0.14
string(0) ""