3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $xx = array(); for ($i = 0; $i < 100, $i++) { $xx[$i] = $i*$i; } $amount = 0; foreach ($xx as $i) { $amount += $i; } echo $amount;
Output for 5.3.0 - 5.4.14
Parse error: syntax error, unexpected ')', expecting ';' in /in/Dr2Ns on line 3
Process exited with code 255.