3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $dosya = 1; while(1){ $ourFileHandle = fopen($dosya, 'a') or die("can't open file"); fclose($ourFileHandle); $dosya++; } ?>
Output for 5.2.3 - 5.6.22, 7.0.0 - 7.1.0
Warning: fopen(1): failed to open stream: Permission denied in /in/Ol6cM on line 4 can't open file
Output for hhvm-3.10.0 - 3.12.0
Warning: Permission denied in /in/Ol6cM on line 4 can't open file
Output for 4.3.2 - 5.2.2
Warning: fopen(1): failed to open stream: Read-only file system in /in/Ol6cM on line 4 can't open file
Output for 4.3.0 - 4.3.1
Warning: fopen(1) [http://www.php.net/function.fopen]: failed to create stream: Read-only file system in /in/Ol6cM on line 4 can't open file