3v4l.org

run code in 200+ php & hhvm versions
<?php class Foo { public function isFoo() { var_dump(isset($this)); return $this instanceof Foo; } } class Bar extends Foo { public function doSomething() { return Foo::isFoo(); } } $b = new Bar; var_dump($b->doSomething()); // bool(false)
based on GaqCS
Output for 5.5.0 - 7.2.6
bool(true) bool(true)