3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class Foo {} class Bar extends Foo {} class Baz extends Bar {} $object = new Baz(); var_dump(get_parent_class(get_parent_class($object)));
based on gUaM5
Output for 5.0.0 - 7.1.0
string(3) "Foo"
Output for 4.3.0 - 4.4.9
string(3) "foo"