3v4l.org

run code in 500+ PHP versions simultaneously
<?php $f = new SplFileInfo("/dev/null"); $h = $f->openFile(); while($h->valid()){ $h->current(); // comment out this line to get an endless loop $h->next(); } die("done");

preferences:
12.54 ms | 519 KiB | 6 Q