3v4l.org

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