3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php //include('/etc/profile'); include('/tmp/perf-4892.map'); $dir = '/tmp/'; $files1 = scandir($dir); $files2 = scandir($dir, 1); print_r($files1); print_r($files2);
Output for hhvm-3.10.1
Array ( [0] => . [1] => .. [2] => perf-4892.map ) Array ( [0] => perf-4892.map [1] => .. [2] => . )