3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = new stdclass(); unset($a->foo->bar->baz); var_dump($a);
Output for 5.3.0 - 5.6.28, 7.0.0 - 7.1.0
Warning: Attempt to modify property of non-object in /in/v8uYG on line 2 object(stdClass)#1 (1) { ["foo"]=> NULL }
Output for 5.0.0 - 5.2.17, hhvm-3.10.0 - 3.12.0
object(stdClass)#1 (1) { ["foo"]=> NULL }
Output for 4.3.0 - 4.4.9
Notice: Undefined property: foo in /in/v8uYG on line 2 object(stdClass)(0) { }