3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class A{ public $stuff; } $x = new A; var_dump(property_exists($x, "stuff")); var_dump($x->stuff); (unset)$x->stuff; var_dump(property_exists($x, "stuff")); var_dump($x->stuff);
based on LalmV
Output for 7.2.0
Deprecated: The (unset) cast is deprecated in /in/P4Vd6 on line 11 bool(true) NULL bool(true) NULL
Output for 5.3.19 - 7.1.10
bool(true) NULL bool(true) NULL