3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $x = file_get_contents('hello'); echo $x ; ?>
based on F9ctf
Output for 7.2.11, 7.3.0rc3 - 7.3.0rc4
Warning: file_get_contents(): open_basedir restriction in effect. File(hello) is not within the allowed path(s): (/tmp:/in:/etc) in /in/YYrXi on line 2 Warning: file_get_contents(hello): failed to open stream: Operation not permitted in /in/YYrXi on line 2
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.1.10, 7.2.0, 7.3.0alpha1 - 7.3.0beta1
Warning: file_get_contents(hello): failed to open stream: No such file or directory in /in/YYrXi on line 2
Output for 7.1.20, 7.2.6
Warning: file_get_contents(): open_basedir restriction in effect. File(hello) is not within the allowed path(s): (/tmp:/in) in /in/YYrXi on line 2 Warning: file_get_contents(hello): failed to open stream: Operation not permitted in /in/YYrXi on line 2
Output for hhvm-3.12.14 - 3.17.3
Warning: No such file or directory in /in/YYrXi on line 2