3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php foreach (new DirectoryIterator('/run') as $f) { echo $f->getFilename() ."\n"; }
Output for 5.0.0 - 7.1.0
. .. postgresql systemd
Output for 4.3.2 - 4.4.9
<br /> <b>Fatal error</b>: Cannot instantiate non-existent class: directoryiterator in <b>/in/oc5W1</b> on line <b>3</b><br />
Process exited with code 255.
Output for 4.3.0 - 4.3.1
<br /> <b>Fatal error</b>: Cannot instantiate non-existent class: directoryiterator in <b>/in/oc5W1</b> on line <b>3</b><br />