Benchmarking listing files in a local directory in PHP

Benchmarking scandir, readdir, glob and DirectoryIterator for listing files in a directory in PHP.