3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = new StdClass(); $a->{'0'} = 'a'; $a->{'1'} = 'a'; $a = (array)$a; foreach ($a as $k => $b) echo gettype($k)."\t";
Output for 4.3.0 - 4.4.9, 7.2.0 - 7.3.0alpha1
integer integer
Output for 5.0.0 - 7.1.10
string string