3v4l.org

run code in 300+ PHP versions simultaneously
<?php $it = new ArrayObject(); $it[] = 'Foo'; $it[] = 'Bar'; reset($it); do { echo current($it), "\n"; echo key($it), "\n"; } while (next($it));

preferences:
68.11 ms | 407 KiB | 5 Q