3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $dh = opendir('/proc/'.getmypid()); $out = ''; while (($file = readdir($dh)) !== false) { $out .= "filename: $file : filetype: " . filetype($dir . $file) . "\n"; } closedir($dh); echo $out;