3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $max = 100000; $a = $b = $c = 0; foreach (range($max) as $i) { $a = $a + $b + $i; $b = $a * 5678 * $i; $c = $i * $i; } //0,046 s
Output for 5.0.0 - 5.0.5, 5.1.1 - 7.1.0
Warning: range() expects at least 2 parameters, 1 given in /in/jj4eo on line 4 Warning: Invalid argument supplied for foreach() in /in/jj4eo on line 4
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/jj4eo on line 9
Process exited with code 255.
Output for 4.3.0 - 4.3.10, 4.4.0 - 4.4.9
Warning: Wrong parameter count for range() in /in/jj4eo on line 4 Warning: Invalid argument supplied for foreach() in /in/jj4eo on line 4
Output for 4.3.11
Warning: Wrong parameter count for range() in /in/jj4eo on line 4