3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $p = 80; $c = 0.05; $s = 837; $f = 15; $h = 0; $j = 0; for ($i=0; $i<$s; $i++) { if (mt_rand(0, 100) <= $c * 100) { $h = max($h, $j); $j = 0; } else { $j += $f; } } var_dump($h);
Output for 5.3.0 - 5.4.28
Parse error: syntax error, unexpected '{' in /in/AfAt1 on line 12
Process exited with code 255.