3v4l.org

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

preferences:
53.17 ms | 402 KiB | 5 Q