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], ]; foreach ($v_4 as $i => &$row) { foreach ($row as $k => &$v) { $v += $v_5[$i][$k]; } } var_export($v_4);
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:
29.84 ms | 409 KiB | 6 Q