3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php /*$dir = '/tmp/'; if ($dh = opendir($dir)) { while (($file = readdir($dh)) !== false) { echo "filename: $file : filetype: " . filetype($dir . $file) . "\n"; } closedir($dh); } */ readfile('/tmp/.cant_touch_this');
based on gWhEs
Output for 5.4.34 - 5.6.28, 7.0.0 - 7.1.0
Warning: readfile(/tmp/.cant_touch_this): failed to open stream: No such file or directory in /in/ATfUY on line 11
Output for hhvm-3.10.0 - 3.12.0
Warning: No such file or directory in /in/ATfUY on line 11
Output for 4.3.1 - 5.4.32
Output for 4.3.0
Warning: readfile(/tmp/.cant_touch_this) [http://www.php.net/function.readfile]: failed to create stream: No such file or directory in /in/ATfUY on line 11