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("/root/*") as $file) { echo $file . "\n"; } #echo
Output for 4.3.0 - 4.3.6, 4.3.9 - 5.0.5, 5.1.1 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/l9gKh on line 11
Process exited with code 255.
Output for 4.3.7 - 4.3.8
Warning: Invalid argument supplied for foreach() in /in/l9gKh on line 8