3v4l.org

run code in 300+ PHP versions simultaneously
<?php if ($dh = opendir('/etc/apache2/')) { echo "Directory handle: $handle\n"; echo "Entries:\n"; /* This is the correct way to loop over the directory. */ while (false !== ($entry = readdir($dh))) { echo "$entry\n"; } closedir($dh); }

preferences:
45.43 ms | 402 KiB | 5 Q