3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $array = array(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20); while(count($array) > 0){ $first = array_shift($array); foreach($array as $value){ $result[] = $array[0] + $value; } }
Output for 5.2.15 - 7.1.0