3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = new ArrayIterator(range(5,10)); $arr->seek(1); // expected: two, output: two echo $arr->current();

preferences:
50.16 ms | 402 KiB | 5 Q