3v4l.org

run code in 300+ PHP versions simultaneously
<?php $myIt = new ArrayIterator(range( 0, 50)); $myIt->seek(20); echo $myIt->current(), "\n"; // out: 1 expected 20 $myIt->seek(5000); // ? out of bounds but no error or Exception

preferences:
65.15 ms | 402 KiB | 5 Q