<?php
$colecao = [1, 3, 6, 9, 13];
$soma = 0;
for($i = 0, $j = count($colecao); $i < $j; $i++){ $soma += $colecao[$i];
}
echo $soma;
?>
PD9waHAKJGNvbGVjYW8gPSBbMSwgMywgNiwgOSwgMTNdOwokc29tYSA9IDA7CmZvcigkaSA9IDAsICRqID0gY291bnQoJGNvbGVjYW8pOyAkaSA8ICRqOyAkaSsrKXsKICAgICRzb21hICs9ICRjb2xlY2FvWyRpXTsKfQplY2hvICRzb21hOwo/Pg==