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 4.3.0 - 7.1.0
328350