3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class A{ public $stuff = 10; } $a = new A; var_dump((unset)$a->stuff); var_dump($a);
based on sRrPM
Output for 7.2.0
Deprecated: The (unset) cast is deprecated in /in/DfT1i on line 9 NULL object(A)#1 (1) { ["stuff"]=> int(10) }
Output for 5.3.22 - 7.1.10
NULL object(A)#1 (1) { ["stuff"]=> int(10) }