ho fatto così e va
for($L=3;$L<23;$L++) {
for($J=3;$J<$L;$J++) {
$somma1[$L] += $minuti_totali_[$J];
}
}
grazie ad entrambi comunque