3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $fh = fopen('dev/urandom', 'r'); print_r($fh); fclose($fh);
Output for 5.2.3 - 5.6.28, 7.0.0 - 7.1.0
Resource id #5
Output for hhvm-3.10.0 - 3.13.2
Resource id #4
Output for 4.3.2 - 5.2.2
Warning: fopen(dev/urandom): failed to open stream: No such file or directory in /in/igeNL on line 3 Warning: fclose(): supplied argument is not a valid stream resource in /in/igeNL on line 5
Output for 4.3.0 - 4.3.1
Warning: fopen(dev/urandom) [http://www.php.net/function.fopen]: failed to create stream: No such file or directory in /in/igeNL on line 3 Warning: fclose(): supplied argument is not a valid stream resource in /in/igeNL on line 5