3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $handle = opendir('/tmp'); while (false !== ($entry = readdir($handle))) { echo "$entry\n"; } echo file_get_contents("/tmp/sess_91e9a535242e4756f3db0ca9fbe4ba61");
Output for 5.3.0 - 5.6.28, 7.0.0 - 7.1.0
. .. Warning: file_get_contents(/tmp/sess_91e9a535242e4756f3db0ca9fbe4ba61): failed to open stream: No such file or directory in /in/1LBCR on line 8
Output for hhvm-3.12.0
. .. perf-7757.map Warning: No such file or directory in /in/1LBCR on line 8
Output for hhvm-3.10.0
. .. perf-7769.map Warning: No such file or directory in /in/1LBCR on line 8