3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = [ 9 => [ 1 => [2 => 433, 6 => 2, 4 => 101], 3 => [6 => 999], ], 14 => [ 2 => [2 => 0, 6 => 2], ] ]; $result = array_map(fn($v) => array_sum(array_map(fn($v) => array_sum($v), $v)), $data); print_r($result);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [9] => 1535 [14] => 2 )

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