3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $count = 0; if ($handle = opendir('.')) { while (false !== ($entry = readdir($handle))) { $count++; } closedir($handle); } $f = fopen("test", "w"); while(true) { fwrite($f, "0000000000000000000000000000000000000000") } echo $count;
Output for 5.3.0 - 5.4.8
Parse error: syntax error, unexpected '}' in /in/3SeXv on line 13
Process exited with code 255.