3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(scandir("/home/sjon")); echo 'Current script owner: ' . get_current_user();
based on XEhL5
Output for 5.0.0 - 7.2.0
Warning: scandir(/home/sjon): failed to open dir: No such file or directory in /in/ebLfu on line 2 Warning: scandir(): (errno 2): No such file or directory in /in/ebLfu on line 2 bool(false) Current script owner: root
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: scandir() in /in/ebLfu on line 2
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: scandir() in /in/ebLfu on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: scandir() in /in/ebLfu on line 2