3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function penjumlahan($data_angka) { $hasil = 0; foreach($data_angka as $index => $value) { $hasil = $hasil + $value; } return $hasil; } $kumpulan_angka = array(3,5,7,8,9); $hasil = penjumlahan($kumpulan_angka); echo $hasil;
based on OgmAM
Output for 4.3.0 - 7.2.0
32