3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(scandir('/sys')); ?>
Output for 5.0.0 - 7.1.0
array(9) { [0]=> string(1) "." [1]=> string(2) ".." [2]=> string(5) "block" [3]=> string(3) "bus" [4]=> string(5) "class" [5]=> string(3) "dev" [6]=> string(7) "devices" [7]=> string(2) "fs" [8]=> string(6) "kernel" }
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: scandir() in /in/f6c3A on line 1
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: scandir() in /in/f6c3A on line 1
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: scandir() in /in/f6c3A on line 1