3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $i = new ArrayIterator(); $i->offsetSet(0, 0); $i->next(); $i->offsetSet(100, 100); $i->offsetSet(200, FALSE); print_r($i->current()); print_r(count($i));
based on Gd2rA
Output for 7.0.0 - 7.2.0
1003
Output for 5.3.21 - 5.6.28
3