3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php error_reporting(E_ALL); dir('./'); ?>
Output for 7.3.0rc3 - 7.3.0rc6
Warning: dir(): open_basedir restriction in effect. File(./) is not within the allowed path(s): (/tmp:/in:/etc) in /in/9v1CI on line 3 Warning: dir(./): failed to open dir: Operation not permitted in /in/9v1CI on line 3
Output for 4.3.2 - 5.2.2, 5.5.24 - 7.1.10, 7.2.0, 7.3.0alpha1 - 7.3.0beta1
Warning: dir(./): failed to open dir: Permission denied in /in/9v1CI on line 3
Output for 7.1.20, 7.2.6
Warning: dir(): open_basedir restriction in effect. File(./) is not within the allowed path(s): (/tmp:/in) in /in/9v1CI on line 3 Warning: dir(./): failed to open dir: Operation not permitted in /in/9v1CI on line 3
Output for 5.2.3 - 5.4.45
Output for 4.3.0 - 4.3.1
Warning: dir(./) [http://www.php.net/function.dir]: failed to open dir: Permission denied in /in/9v1CI on line 3