3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $handle = fopen('/etc/passwd', 'r'); $data = fread($handle); fclose($handle); echo $data;
Output for 5.3.0 - 7.1.0
Warning: fread() expects exactly 2 parameters, 1 given in /in/X6oXs on line 4
Output for 4.3.0 - 5.2.17
Warning: Wrong parameter count for fread() in /in/X6oXs on line 4