3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = new stdClass; $a->b = 1; var_dump(isset($a)); var_dump(isset($a->b)); var_dump(isset($a->b->c)); var_dump(isset($a->b->c->d)); var_dump(isset($a->b->c->d->e));
Output for 4.3.0 - 4.4.9, 5.1.6 - 7.1.0
bool(true) bool(true) bool(false) bool(false) bool(false)
Output for 5.0.0 - 5.1.5
bool(true) bool(true) bool(false) Notice: Trying to get property of non-object in /in/vbYDe on line 9 bool(false) Notice: Trying to get property of non-object in /in/vbYDe on line 10 Notice: Trying to get property of non-object in /in/vbYDe on line 10 bool(false)