3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(scandir("."));
Output for 5.6.26 - 5.6.27, 5.6.29 - 5.6.30, 7.0.11 - 7.0.13, 7.0.15 - 7.0.19, 7.0.21 - 7.0.30, 7.1.1 - 7.1.4, 7.1.8 - 7.1.9, 7.1.11 - 7.1.17, 7.2.1 - 7.2.11
Warning: scandir(): open_basedir restriction in effect. File(.) is not within the allowed path(s): (/tmp:/in:/etc) in /in/lR2oa on line 3 Warning: scandir(.): failed to open dir: Operation not permitted in /in/lR2oa on line 3 Warning: scandir(): (errno 1): Operation not permitted in /in/lR2oa on line 3 bool(false)
Output for 5.0.0 - 5.6.25, 5.6.28, 7.0.0 - 7.0.10, 7.0.14, 7.0.20, 7.1.0, 7.1.5 - 7.1.7, 7.1.10, 7.2.0
Warning: scandir(.): failed to open dir: Permission denied in /in/lR2oa on line 3 Warning: scandir(): (errno 13): Permission denied in /in/lR2oa on line 3 bool(false)
Output for 7.1.20
Warning: scandir(): open_basedir restriction in effect. File(.) is not within the allowed path(s): (/tmp:/in) in /in/lR2oa on line 3 Warning: scandir(.): failed to open dir: Operation not permitted in /in/lR2oa on line 3 Warning: scandir(): (errno 1): Operation not permitted in /in/lR2oa on line 3 bool(false)
Output for hhvm-3.22.0
Warning: Permission denied in /in/lR2oa on line -1 bool(false)
Output for hhvm-3.10.1 - 3.21.3
Warning: Permission denied in /in/lR2oa on line 3 bool(false)
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: scandir() in /in/lR2oa on line 3
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: scandir() in /in/lR2oa on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: scandir() in /in/lR2oa on line 3