3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ar1 = [[3,4],[6,1]]; $ar2 = [[44,1],[3,2]]; foreach($ar1 as $ind => $ar){ $res[] = array_sum(array_column($ar1,$ind)); } print_r($res); foreach($ar2 as $ind => $ar){ $res2[] = array_sum(array_column($ar2,$ind)); } print_r($res2);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => 9 [1] => 5 ) Array ( [0] => 47 [1] => 3 )

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:
237.09 ms | 405 KiB | 5 Q