3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $f = urldecode("/etc/hosts%00aaa/../passwd"); readfile($f);
Output for 5.4.0 - 7.1.0
Warning: readfile() expects parameter 1 to be a valid path, string given in /in/Y95WJ on line 3
Output for 5.3.4 - 5.3.29
Output for 4.3.0 - 5.3.3
# # /etc/hosts: static lookup table for host names # #<ip-address> <hostname.domain.org> <hostname> 127.0.0.1 localhost.localdomain localhost ::1 localhost.localdomain localhost # End of file