3v4l.org

run code in 300+ PHP versions simultaneously
<?php $new_array = array(); $Array1 = Array( '8756' => '1A10', '8758' =>' 1B20', '8770' =>' 1B25', ); $Array2 = Array( '8756' => '413072-FT6', '8758' => '413072-HT4', '8770' => '413072-WT4', ); foreach( $Array1 as $key => $_val) { $new_array[$key]['loc'] = $_val; $new_array[$key]['sku'] = $Array2[$key]; } print_r($new_array);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [8756] => Array ( [loc] => 1A10 [sku] => 413072-FT6 ) [8758] => Array ( [loc] => 1B20 [sku] => 413072-HT4 ) [8770] => Array ( [loc] => 1B25 [sku] => 413072-WT4 ) )

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.45 ms | 406 KiB | 5 Q