3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $dir = './test/'; $totalFiles = 1e5; !is_dir($dir) && mkdir($dir); for ($i = 0; $i < $totalFiles; ++$i) { $filename = $dir . str_pad($i, 6, '0', STR_PAD_LEFT); touch($filename); } $files = scandir($dir); echo 'scandir: ' . (count($files) - 2) . '/' . $totalFiles . PHP_EOL;

Abusive script

This script was stopped while abusing our resources