3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr1 = [ ['A', 'B', 'C'], ['F', 'G'] ]; $arr2 = [ ['D', 'E'], ['H', 'I', 'J', 'L'] ]; foreach ($arr1 as $i => &$row) { array_push($row, ...$arr2[$i]); } var_export($arr1);
Output for git.master, git.master_jit, rfc.property-hooks
array ( 0 => array ( 0 => 'A', 1 => 'B', 2 => 'C', 3 => 'D', 4 => 'E', ), 1 => array ( 0 => 'F', 1 => 'G', 2 => 'H', 3 => 'I', 4 => 'J', 5 => 'L', ), )

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