3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array( array( 0 => array( 'one' => 1, 'two' => 2 ), 1 => array( 'three' => 1 ) ), array( 0 => array( 'one1' => 1, 'two1' => 2 ), 1 => array( 'three1' => 1 ) ) ); foreach($a as $child){ $flatten[] = array_merge(...$child); } print_r($flatten);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => Array ( [one] => 1 [two] => 2 [three] => 1 ) [1] => Array ( [one1] => 1 [two1] => 2 [three1] => 1 ) )

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:
37.39 ms | 406 KiB | 5 Q