3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $handle = fopen("/dev/random\0.test", 'r'); echo fgets($handle);
Output for 5.4.0 - 7.1.0
Warning: fopen() expects parameter 1 to be a valid path, string given in /in/Zj36o on line 3 Warning: fgets() expects parameter 1 to be resource, boolean given in /in/Zj36o on line 5
Output for 5.3.5 - 5.3.28
Warning: fgets() expects parameter 1 to be resource, boolean given in /in/Zj36o on line 5
Output for 5.2.17
��!�)�;�S