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);

preferences:
25.08 ms | 404 KiB | 5 Q