3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $root = scandir('/'); foreach($root as &$directory){ echo "--- ".$directory." ---\n" var_dump(scandir($directory)); }
Output for 5.4.0 - 5.4.8
Parse error: syntax error, unexpected 'var_dump' (T_STRING), expecting ',' or ';' in /in/BpvkD on line 5
Process exited with code 255.
Output for 5.3.0 - 5.3.18
Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /in/BpvkD on line 5
Process exited with code 255.