3v4l.org

run code in 300+ PHP versions simultaneously
<?php $path = __DIR__; // list all files, with and without leading . $files = glob($path . '/{,.}[!.,!..]*', GLOB_BRACE); // list all files, except . and .. $files = glob($path . '/{,.}*', GLOB_BRACE);

preferences:
42.47 ms | 404 KiB | 5 Q