3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo(file_get_contents('/tmp/greetings.txt')); var_dump(glob('/tmp/*'));
Output for 5.3.0 - 5.6.28, 7.0.0 - 7.1.0
Warning: file_get_contents(/tmp/greetings.txt): failed to open stream: No such file or directory in /in/DKc55 on line 2 array(0) { }
Output for hhvm-3.12.0
Warning: No such file or directory in /in/DKc55 on line 2 array(1) { [0]=> string(18) "/tmp/perf-9154.map" }
Output for hhvm-3.10.0
Warning: No such file or directory in /in/DKc55 on line 2 array(1) { [0]=> string(18) "/tmp/perf-9153.map" }