3v4l.org

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