3v4l.org

run code in 300+ PHP versions simultaneously
<?php $v_4 = [ [1, 2, 3], [4, 5, 6], ]; $v_5 = [ [7, 8, 9], [10, 11, 12], ]; var_export( array_map( fn(...$row) => array_map( fn(...$col) => array_sum($col), ...$row ), $v_4, $v_5 ) );
Output for git.master, git.master_jit, rfc.property-hooks
array ( 0 => array ( 0 => 8, 1 => 10, 2 => 12, ), 1 => array ( 0 => 14, 1 => 16, 2 => 18, ), )

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