3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $dir = '/tmp'; $files1 = scandir($dir); $files2 = scandir($dir, 1); print_r($files1); print_r($files2); ?>
Output for 5.3.0 - 7.1.0
Array ( [0] => . [1] => .. ) Array ( [0] => .. [1] => . )