3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $count = 100000; $total = array(); for ($i=0; $i<$count; $i++) { $total[] = $i; } $total2=0; for ($i=0; $i<$count; $i++) { $total2 += $total[$i]; } var_dump($total2);
Output for 4.3.0 - 7.1.0
int(4999950000)