3v4l.org

run code in 500+ 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);

preferences:
111.96 ms | 2130 KiB | 5 Q