3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump( get_object_vars( ($o = (object) array( 'x' ) ) ) );
based on RhX0G
Output for 7.0.0 - 7.2.0
array(1) { [0]=> string(1) "x" }
Output for 5.3.21 - 5.6.28
array(0) { }