3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $f = urldecode("/etc/host%00a/../passwd"); readfile($f);
Output for 5.4.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
Warning: readfile() expects parameter 1 to be a valid path, string given in /in/a4mt2 on line 3
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.3.4 - 5.3.29
Output for 4.3.2 - 5.3.3
Warning: readfile(/etc/host): failed to open stream: No such file or directory in /in/a4mt2 on line 3
Output for 4.3.0 - 4.3.1
Warning: readfile(/etc/host) [http://www.php.net/function.readfile]: failed to create stream: No such file or directory in /in/a4mt2 on line 3