3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = new StdClass(); $a->{'0'} = 'a'; $a->{'1'} = 'a'; var_dump((array)$a);
Output for 7.2.0 - 7.3.0alpha1
array(2) { [0]=> string(1) "a" [1]=> string(1) "a" }
Output for 5.3.7 - 7.1.10
array(2) { ["0"]=> string(1) "a" ["1"]=> string(1) "a" }