3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $array = array(60,56.8,42.08,52.16,52.8); $array = array(60,56.8,42.08,52.16,52.8); while(count($array) > 0){ $first = array_shift($array); foreach($array as $value){ echo "$first + $value = " . ($first + $value) . "<br/>\n"; $result[] = $first + $value; } }