3v4l.org

run code in 200+ php & hhvm versions
<?php class Foo { public $bar = 1; } $f = new Foo; $f->baz = 2; var_dump($f); unset($f->bar, $f->baz); var_dump($f);