3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class test { } $t = new test(); $t->foo = 'bar'; var_dump(get_object_vars($t)); var_dump($t);
based on R1OUX
Output for 5.0.0 - 7.1.0
array(1) { ["foo"]=> string(3) "bar" } object(test)#1 (1) { ["foo"]=> string(3) "bar" }
Output for 4.3.0 - 4.4.9
array(1) { ["foo"]=> string(3) "bar" } object(test)(1) { ["foo"]=> string(3) "bar" }