3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array(60,56.8,42.08,52.16,52.8); while(count($array) > 0){ $first = array_shift($array); foreach($array as $value){ $result[] = $first + $value; } } var_dump($result);
Output for git.master, git.master_jit, rfc.property-hooks
array(10) { [0]=> float(116.8) [1]=> float(102.08) [2]=> float(112.16) [3]=> float(112.8) [4]=> float(98.88) [5]=> float(108.96) [6]=> float(109.6) [7]=> float(94.24) [8]=> float(94.88) [9]=> float(104.96) }

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
39.57 ms | 402 KiB | 8 Q