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);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => Array ( [width_id] => 8 [profile_id] => 8 [diameter_id] => 4 [speed_id] => 6 [load_id] => 12 ) [1] => Array ( [width_id] => 24 [profile_id] => 13 [diameter_id] => 13 [speed_id] => 13 [load_id] => 31 ) )

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