3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $o = new stdclass; $o->{1} = 'int'; $o->{'1'} = 'str'; var_dump($o); var_dump((array)$o);
Output for 7.2.0
object(stdClass)#1 (1) { ["1"]=> string(3) "str" } array(1) { [1]=> string(3) "str" }
Output for 5.3.20 - 7.1.10
object(stdClass)#1 (1) { ["1"]=> string(3) "str" } array(1) { ["1"]=> string(3) "str" }