3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a1 = ["10100153", "2007", "350", "804082", "WW006", "WHT/NNY/OXGM", "35/38", "804082 WW00635/38", "0,00138857", "Champion 3pk Quarter Socks"]; $a2 = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]; $res = array_map(null, $a1, $a2); $keys = array("Value", "Number"); $res = array_map(function ($e) use ($keys) {return array_combine($keys, $e);}, $res); print_r($res);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => Array ( [Value] => 10100153 [Number] => 1 ) [1] => Array ( [Value] => 2007 [Number] => 2 ) [2] => Array ( [Value] => 350 [Number] => 3 ) [3] => Array ( [Value] => 804082 [Number] => 4 ) [4] => Array ( [Value] => WW006 [Number] => 5 ) [5] => Array ( [Value] => WHT/NNY/OXGM [Number] => 6 ) [6] => Array ( [Value] => 35/38 [Number] => 7 ) [7] => Array ( [Value] => 804082 WW00635/38 [Number] => 8 ) [8] => Array ( [Value] => 0,00138857 [Number] => 9 ) [9] => Array ( [Value] => Champion 3pk Quarter Socks [Number] => 10 ) )

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:
32.16 ms | 408 KiB | 5 Q