3v4l.org

run code in 300+ PHP versions simultaneously
<?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 5.3.0 - 5.3.28, 5.4.0 - 5.4.24
Parse error: syntax error, unexpected '}' in /in/BtJJA on line 12
Process exited with code 255.

preferences:
179.74 ms | 1395 KiB | 61 Q