3v4l.org

run code in 300+ PHP versions simultaneously
<?php $contents = new RecursiveIteratorIterator(new RecursiveDirectoryIterator(__DIR__)); $contents->rewind(); // dont forget to rewind while ($contents->valid()) { echo $contents->getSubPathName() . "\n"; $contents->next(); }
Output for 8.0.1 - 8.0.30, 8.1.0 - 8.1.30, 8.2.0 - 8.2.23, 8.2.25 - 8.2.26, 8.3.0 - 8.3.11, 8.3.13 - 8.3.14, 8.4.1
. .. vHY8J
Output for 8.3.12
. .. lOUO2 vHY8J
Output for 8.2.24
. .. vHY8J umH5p
Output for 8.1.31
. .. PehKt vHY8J

preferences:
52.92 ms | 409 KiB | 5 Q