3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class A { private $b; function __construc($b) { $this->b = $b; } function __get($name) { echo "get $name \n"; return $this->$name; } function __isset($name) { echo "isset $name\n"; return true; } } class B { private $c; function __construc($c) { $this->c = $c; } function __get($name) { echo "get $name \n"; return $this->$name; } function __isset($name) { echo "isset $name\n"; return true; } } $c = new B('plop'); $b = new B($c); $a = new A($b); var_dump(isset($a->b->c));
based on v2lPE
Output for 7.0.28 - 7.3.0rc3
isset b get b bool(false)
Output for 5.6.38
get b bool(false)