3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo { private $a; public $b = 1; public $c; private $d; static $e; public function test() { var_dump(get_object_vars($this)); } } $test = new foo; var_dump(get_object_vars($test)); $test->test();

preferences:
50.69 ms | 402 KiB | 5 Q