3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function readDirectory($aPath) { } readDirectory();
Output for 7.1.0
Fatal error: Uncaught ArgumentCountError: Too few arguments to function readDirectory(), 0 passed in /in/Zai6l on line 6 and exactly 1 expected in /in/Zai6l:3 Stack trace: #0 /in/Zai6l(6): readDirectory() #1 {main} thrown in /in/Zai6l on line 3
Process exited with code 255.
Output for 5.1.0 - 5.6.28, 7.0.0 - 7.0.14
Warning: Missing argument 1 for readDirectory(), called in /in/Zai6l on line 6 and defined in /in/Zai6l on line 3
Output for hhvm-3.10.0 - 3.12.0
Warning: readDirectory() expects exactly 1 parameter, 0 given in /in/Zai6l on line 4
Output for 5.0.0 - 5.0.5
Warning: Missing argument 1 for readDirectory() in /in/Zai6l on line 3
Output for 4.3.0 - 4.4.9
Warning: Missing argument 1 for readdirectory() in /in/Zai6l on line 3