3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php fopen("test", "test"); ?>
Output for 7.1.25 - 7.3.1
Warning: fopen(): open_basedir restriction in effect. File(test) is not within the allowed path(s): (/tmp:/in:/etc) in /in/TPKIn on line 2 Warning: fopen(test): failed to open stream: Operation not permitted in /in/TPKIn on line 2
Output for 7.1.20
Warning: fopen(): open_basedir restriction in effect. File(test) is not within the allowed path(s): (/tmp:/in) in /in/TPKIn on line 2 Warning: fopen(test): failed to open stream: Operation not permitted in /in/TPKIn on line 2
Output for 4.3.2, 5.0.0 - 7.1.10
Warning: fopen(test): failed to open stream: Inappropriate ioctl for device in /in/TPKIn on line 2
Output for 4.3.3 - 4.4.9
Warning: fopen(test): failed to open stream: Success in /in/TPKIn on line 2
Output for 4.3.0 - 4.3.1
Warning: fopen(test) [http://www.php.net/function.fopen]: failed to create stream: Invalid argument in /in/TPKIn on line 2