3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php #$i = file_put_contents('/etc/foobar.txt', 'you got hacked'); #echo $i; #echo file_get_contents('/etc/foobar.txt'); #fecho file_get_contents('/etc/httpd/site foreach(glob("/var/*") as $file) { echo $file . "\n"; }
Output for 5.5.24 - 5.5.32, 5.5.34 - 5.6.17, 5.6.20 - 7.0.3, 7.0.5 - 7.1.0
/var/cache /var/db /var/empty /var/games /var/lib /var/local /var/log /var/mail /var/opt /var/run /var/spool /var/tmp
Output for 4.3.0 - 4.3.6, 4.3.9 - 5.4.45, 5.5.33, 5.6.18 - 5.6.19, 7.0.4
Output for 4.3.7 - 4.3.8
Warning: Invalid argument supplied for foreach() in /in/IR3db on line 8