3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php call_user_func(array(new MyClass_Mod, "msg")); class MyClass { function msg() { echo '<p>get_class(): ' . get_class() . '</p>'; } } class MyClass_Mod extends MyClass { }
Output for 5.0.0 - 7.1.0
<p>get_class(): MyClass</p>
Output for 4.3.0 - 4.4.9
Warning: Wrong parameter count for get_class() in /in/f0Knn on line 6 <p>get_class(): </p>