3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo file_get_contents("/bin/id");
Output for 8.0.0 - 8.0.12, 8.0.14 - 8.0.30, 8.1.0 - 8.1.29, 8.2.0 - 8.2.20, 8.3.0 - 8.3.8
Warning: file_get_contents(): open_basedir restriction in effect. File(/bin/id) is not within the allowed path(s): (/tmp:/in:/etc) in /in/otjlk on line 2 Warning: file_get_contents(/bin/id): Failed to open stream: Operation not permitted in /in/otjlk on line 2
Output for 8.0.13
Warning: file_get_contents(/bin/id): Failed to open stream: No such file or directory in /in/otjlk on line 2
Output for 5.5.0 - 5.5.37, 5.6.0 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.7, 7.2.0, 7.3.32 - 7.3.33, 7.4.33
Warning: file_get_contents(/bin/id): failed to open stream: No such file or directory in /in/otjlk on line 2
Output for 7.2.29 - 7.2.33, 7.3.16 - 7.3.31, 7.4.0 - 7.4.32
Warning: file_get_contents(): open_basedir restriction in effect. File(/bin/id) is not within the allowed path(s): (/tmp:/in:/etc) in /in/otjlk on line 2 Warning: file_get_contents(/bin/id): failed to open stream: Operation not permitted in /in/otjlk on line 2
Output for 7.1.20, 7.2.6
Warning: file_get_contents(): open_basedir restriction in effect. File(/bin/id) is not within the allowed path(s): (/tmp:/in) in /in/otjlk on line 2 Warning: file_get_contents(/bin/id): failed to open stream: Operation not permitted in /in/otjlk on line 2

preferences:
207.12 ms | 402 KiB | 223 Q