3v4l.org

run code in 500+ PHP versions simultaneously
<?php $contents = new RecursiveCallbackFilterIterator( new RecursiveDirectoryIterator(__DIR__), function ($current, $key, $iterator): bool { return true; }, ); while ($contents->valid()) { echo $contents->getSubPathName() . "\n"; $contents->next(); }
Output for 8.0.1 - 8.0.30, 8.1.0 - 8.1.34, 8.2.0 - 8.2.31, 8.3.0 - 8.3.31, 8.4.1 - 8.4.22, 8.5.0 - 8.5.7

preferences:
62.28 ms | 1118 KiB | 4 Q