3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = new STDClass(); $a->aa = "bb"; $a->aaa = "bbb"; print_r($a); print_r((array)$a); print_r(get_object_vars($a));
based on HIlQN
Output for 4.3.0 - 7.1.0
stdClass Object ( [aa] => bb [aaa] => bbb ) Array ( [aa] => bb [aaa] => bbb ) Array ( [aa] => bb [aaa] => bbb )