3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class Hello { function World() { $output = "Chandra"; return $output; } } $c = new Hello(); var_dump(call_user_func(array("Hello","World")));
Output for 7.0.0 - 7.1.0
Deprecated: Non-static method Hello::World() should not be called statically in /in/Lqr1S on line 12 string(7) "Chandra"
Output for 5.3.0 - 5.6.28
Strict Standards: call_user_func() expects parameter 1 to be a valid callback, non-static method Hello::World() should not be called statically in /in/Lqr1S on line 12 string(7) "Chandra"
Output for 5.1.2 - 5.2.17
Strict Standards: Non-static method Hello::World() cannot be called statically in /in/Lqr1S on line 12 Strict Standards: Non-static method Hello::World() cannot be called statically in /in/Lqr1S on line 12 string(7) "Chandra"
Output for 5.0.0 - 5.1.1
Strict Standards: Non-static method Hello::World() cannot be called statically in /in/Lqr1S on line 12 string(7) "Chandra"
Output for 4.3.0 - 4.4.9
string(7) "Chandra"