3v4l.org

run code in 300+ PHP versions simultaneously
<?php $testArray = array(array ( 0 => 'Depth [Nom]', 1 => '0.004 in', ), array ( 0 => 'Language', 1 => 'English', ), array ( 0 => 'Length [Nom]', 1 => '10 in', ), array ( 0 => 'Material', 1 => 'Adhesive Vinyl', )); $output = array(); foreach($testArray as $v){ $output[] = array($v[0] => $v[1]); } echo '<pre>'; print_r($output);
Output for git.master, git.master_jit, rfc.property-hooks
<pre>Array ( [0] => Array ( [Depth [Nom]] => 0.004 in ) [1] => Array ( [Language] => English ) [2] => Array ( [Length [Nom]] => 10 in ) [3] => Array ( [Material] => Adhesive Vinyl ) )

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