3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Foo { } class Bar extends Foo {} class Baz extends Bar {} class Service { public function supports($object) { return is_subclass_of($object, Foo::class); } } $s = new Service(); var_dump($s->supports(new Bar()));
Output for 7.3.0rc3
bool(true)