$ergebnis=0;for ( $x = 0; $x <= 10000; $x++ ){ for ( $i = 0; $i <= 10000; $i++ ) { $ergebnis = $ergebnis+$i; }}echo $ergebnis;