3v4l.org

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