3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php for($f=file(__FILE__),$i=0;$i<10;$i++) { echo $f[$i]; } $l=0; foreach($_SERVER as $s) { if ($s=='ROZWAL') $l++; } if ($l!=40) { die(); }
Output for 4.3.0 - 7.2.0
<?php for($f=file(__FILE__),$i=0;$i<10;$i++) { echo $f[$i]; } $l=0; foreach($_SERVER as $s) { if ($s=='ROZWAL') $l++; } if ($l!=40) {