3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Dog{ function bark($name){ return "bark bark" . $name; } } $controllerName = 'Dog'; var_dump(call_user_func_array(['Dog', 'bark'], ['Oink']));
based on 7sA1f
Output for 7.0.0 - 7.3.0beta1
Deprecated: Non-static method Dog::bark() should not be called statically in /in/Hh0ID on line 10 string(13) "bark barkOink"
Output for hhvm-3.15.4
string(13) "bark barkOink"
Output for 5.6.0 - 5.6.30
Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method Dog::bark() should not be called statically in /in/Hh0ID on line 10 string(13) "bark barkOink"