3v4l.org

run code in 200+ 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 - 7.2.0
Warning: fopen(1): failed to open stream: 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