3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_FILES = ["name" => ["aaa", "bbb"], "type" => ["png", "gif"]]; $keys = array_keys($_FILES); // get all the fields name $res = array_map(null, ...array_values($_FILES)); // group the array by each file $res = array_map(function ($e) use ($keys) {return array_combine($keys, $e);}, $res); // insert the field name to result array print_r($res);

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.3.70.0140.00016.75
8.3.60.0120.00918.28
8.3.50.0090.00618.33
8.3.40.0120.00318.71
8.3.30.0040.01118.54
8.3.20.0000.00820.76
8.3.10.0030.00523.84
8.3.00.0000.00822.42
8.2.190.0070.00716.58
8.2.180.0110.01116.63
8.2.170.0150.00018.96
8.2.160.0100.00322.16
8.2.150.0050.00225.66
8.2.140.0040.00424.66
8.2.130.0080.00021.10
8.2.120.0040.00426.35
8.2.110.0090.00022.00
8.2.100.0080.00418.03
8.2.90.0030.00517.63
8.2.80.0040.00417.97
8.2.70.0080.00017.93
8.2.60.0040.00418.09
8.2.50.0040.00418.10
8.2.40.0020.00519.47
8.2.30.0070.00019.31
8.2.20.0000.00718.00
8.2.10.0070.00019.41
8.2.00.0080.00018.11
8.1.280.0090.00625.92
8.1.270.0140.00324.66
8.1.260.0000.00826.35
8.1.250.0000.00728.09
8.1.240.0030.00720.89
8.1.230.0080.00417.89
8.1.220.0070.00017.74
8.1.210.0000.00818.77
8.1.200.0040.00417.36
8.1.190.0060.00317.00
8.1.180.0000.00818.10
8.1.170.0000.00918.70
8.1.160.0070.00018.94
8.1.150.0050.00318.89
8.1.140.0000.00820.22
8.1.130.0070.00020.14
8.1.120.0040.00417.39
8.1.110.0040.00417.44
8.1.100.0030.00517.50
8.1.90.0080.00017.47
8.1.80.0040.00417.33
8.1.70.0040.00417.48
8.1.60.0050.00317.58
8.1.50.0000.00817.57
8.1.40.0090.00017.40
8.1.30.0030.00517.61
8.1.20.0000.00917.62
8.1.10.0000.00817.39
8.1.00.0030.00517.34
8.0.300.0000.00718.77
8.0.290.0000.00916.63
8.0.280.0040.00418.32
8.0.270.0030.00317.32
8.0.260.0000.00620.00
8.0.250.0040.00416.85
8.0.240.0000.00716.97
8.0.230.0000.00716.92
8.0.220.0070.00016.90
8.0.210.0030.00316.90
8.0.200.0000.00716.95
8.0.190.0080.00016.94
8.0.180.0040.00416.89
8.0.170.0090.00016.90
8.0.160.0050.00316.87
8.0.150.0030.00616.83
8.0.140.0030.00316.89
8.0.130.0000.00613.36
8.0.120.0050.00316.79
8.0.110.0040.00416.79
8.0.100.0050.00216.93
8.0.90.0030.00316.93
8.0.80.0070.01116.93
8.0.70.0000.00716.67
8.0.60.0000.00716.81
8.0.50.0040.00416.72
8.0.30.0130.00417.20
8.0.20.0120.00717.08
8.0.10.0120.00617.22
8.0.00.0120.00716.85
7.4.330.0000.00515.55
7.4.320.0020.00516.61
7.4.300.0030.00316.48
7.4.290.0030.00316.56
7.4.280.0050.00316.61
7.4.270.0000.00716.52
7.4.260.0000.00716.35
7.4.250.0050.00216.47
7.4.240.0040.00416.57
7.4.230.0070.00016.55
7.4.220.0030.00616.68
7.4.210.0110.00816.60
7.4.200.0030.00316.43
7.4.160.0070.01016.44
7.4.150.0080.01116.54
7.4.140.0070.01017.13
7.4.130.0150.00516.40
7.4.120.0140.00616.37
7.4.110.0120.00816.53
7.4.100.0130.00816.48
7.4.90.0080.00916.49
7.4.80.0100.00917.88
7.4.70.0120.00816.36
7.4.60.0090.00916.62
7.4.50.0110.00816.55
7.4.40.0080.00916.30
7.4.30.0030.01516.56
7.4.20.0040.01316.32
7.4.10.0070.01115.75
7.4.00.0120.00615.45
7.3.330.0050.00013.25
7.3.320.0060.00013.10
7.3.310.0050.00216.40
7.3.300.0000.00616.33
7.3.290.0030.00316.11
7.3.280.0060.00916.23
7.3.270.0100.00716.39
7.3.260.0100.01016.39
7.3.250.0160.00616.32
7.3.240.0080.01216.48
7.3.230.0130.00616.34
7.3.220.0140.00416.19
7.3.210.0090.00816.40
7.3.200.0080.00816.45
7.3.190.0080.01116.39
7.3.180.0090.00716.22
7.3.170.0140.00716.42
7.3.160.0100.00616.45
7.3.150.0130.00316.41
7.3.140.0090.00916.41
7.3.130.0140.00315.62
7.3.120.0120.00515.63
7.3.110.0110.00615.68
7.3.100.0060.01115.63
7.3.90.0090.00615.46
7.3.80.0040.01015.66
7.3.70.0120.00215.48
7.3.60.0050.01015.61
7.3.50.0100.00615.49
7.3.40.0090.00615.60
7.3.30.0100.00315.04
7.3.20.0410.01015.72
7.3.10.0350.00915.54
7.3.00.0460.00515.70
7.2.340.0130.01016.70
7.2.330.0100.01116.60
7.2.320.0120.00716.71
7.2.310.0080.01216.69
7.2.300.0120.00516.35
7.2.290.0120.00616.52
7.2.280.0090.00916.33
7.2.270.0000.02016.66
7.2.260.0090.00815.78
7.2.250.0080.01115.72
7.2.240.0080.01115.73
7.2.230.0060.01015.97
7.2.220.0090.00515.75
7.2.210.0060.00915.78
7.2.200.0100.00715.94
7.2.190.0090.00715.75
7.2.180.0090.00715.65
7.2.170.0070.01015.72
7.2.160.0070.00815.34
7.2.150.0350.01115.97
7.2.140.0390.00715.93
7.2.130.0360.00515.76
7.2.120.0330.01016.02
7.2.110.0280.01215.88
7.2.100.0290.00715.88
7.2.90.0280.01116.00
7.2.80.0300.01015.89
7.2.70.0610.01215.70
7.2.60.0320.01115.84
7.2.50.0330.00615.82
7.2.40.0330.00815.91
7.2.30.0310.00915.91
7.2.20.0370.00715.81
7.2.10.0270.01015.71
7.2.00.0310.00615.92
7.1.330.0160.00615.58
7.1.320.0130.00715.83
7.1.310.0130.00815.68
7.1.300.0160.00415.50
7.1.290.0150.00715.56
7.1.280.0180.00315.67
7.1.270.0380.00914.68
7.1.260.0350.00714.82
7.1.250.0430.00814.71
7.1.240.0160.00415.69
7.1.230.0200.00615.63
7.1.220.0160.00515.54
7.1.210.0180.00515.73
7.1.200.0150.00815.70
7.1.190.0150.00815.72
7.1.180.0160.00915.59
7.1.170.0210.00015.65
7.1.160.0220.01015.71
7.1.150.0130.00715.65
7.1.140.0100.01015.65
7.1.130.0030.01815.70
7.1.120.0120.00815.59
7.1.110.0110.00815.62
7.1.100.0140.01115.50
7.1.90.0120.00915.70
7.1.80.0130.00715.80
7.1.70.0120.01015.61
7.1.60.0140.00715.67
7.1.50.0170.00415.73
7.1.40.0180.00615.70
7.1.30.0140.00815.49
7.1.20.0170.00515.71
7.1.10.0120.00915.72
7.1.00.0220.01015.67

preferences:
21.09 ms | 401 KiB | 5 Q