3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump( fopen('/', 'r') );
Output for 7.3.0rc3 - 7.3.0rc4
Warning: fopen(): open_basedir restriction in effect. File(/) is not within the allowed path(s): (/tmp:/in:/etc) in /in/e7S6B on line 3 Warning: fopen(/): failed to open stream: Operation not permitted in /in/e7S6B on line 3 bool(false)
Output for 4.3.2 - 5.6.30, 7.0.0 - 7.1.10, 7.2.0, 7.3.0alpha1 - 7.3.0beta1
Warning: fopen(/): failed to open stream: Permission denied in /in/e7S6B on line 3 bool(false)
Output for 7.1.20, 7.2.6
Warning: fopen(): open_basedir restriction in effect. File(/) is not within the allowed path(s): (/tmp:/in) in /in/e7S6B on line 3 Warning: fopen(/): failed to open stream: Operation not permitted in /in/e7S6B on line 3 bool(false)
Output for hhvm-3.10.1 - 3.17.3
Warning: Permission denied in /in/e7S6B on line 3 bool(false)
Output for 4.3.0 - 4.3.1
Warning: fopen(/) [http://www.php.net/function.fopen]: failed to create stream: Permission denied in /in/e7S6B on line 3 bool(false)