3v4l.org

run code in 300+ PHP versions simultaneously
<?php $source = array ( 'width_id' => array ( 0 => '8', 1 => '24' ), 'profile_id' => array ( 0 => '8', 1 => '13' ), 'diameter_id' => array ( 0 => '4', 1 => '13' ), 'speed_id' => array ( 0 => '6', 1 => '13' ), 'load_id' => array ( 0 => '12', 1 => '31' ) ); $result = []; array_walk($source, function($v,$k) use (&$result){ $result[0][$k] = $v[0]; $result[1][$k] = $v[1]; }); print_r($result);

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
167.39 ms | 2854 KiB | 12 Q