3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $fp = fopen('/etc', 'r'); while ($result = fread($fp, 4096)){ echo $result; }
Output for 7.2.0
Warning: fopen(/etc): failed to open stream: Permission denied in /in/fhckN on line 2 Warning: fread() expects parameter 1 to be resource, boolean given in /in/fhckN on line 3
Output for 4.3.0 - 7.1.10