3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo fopen('/', 'r')."\n"; for ($i = 0; $i < 100; $i++) is_readable('/'); echo fopen('/', 'r');
Output for 4.3.2 - 7.1.0
Warning: fopen(/): failed to open stream: Permission denied in /in/2cX45 on line 3 Warning: fopen(/): failed to open stream: Permission denied in /in/2cX45 on line 8
Output for 4.3.0 - 4.3.1
Warning: fopen(/) [http://www.php.net/function.fopen]: failed to create stream: Permission denied in /in/2cX45 on line 3 Warning: fopen(/) [http://www.php.net/function.fopen]: failed to create stream: Permission denied in /in/2cX45 on line 8