3v4l.org

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