3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = array ( "group_name_1" => "audi", "group_locations_1" => "tokyo,barcelona,paris", "group_quantities_at_locations_1" => "1,2,7", "group_name_2" => "ford", "group_locations_2" => "london,prag", "group_quantities_at_locations_2" => "3,6" ); $result = []; $function = function($v) use (&$result){ $result[$v[0]] = array_combine(explode(",",$v[1]),explode(",",$v[2])); }; array_walk(array_chunk($input,3),$function); print_r($result);

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.60.0100.01016.63
8.3.50.0090.00921.90
8.3.40.0070.00718.84
8.3.30.0140.00018.79
8.3.20.0000.00720.18
8.3.10.0080.00020.61
8.3.00.0080.00021.79
8.2.180.0140.00718.00
8.2.170.0090.00622.96
8.2.160.0030.01020.16
8.2.150.0050.00324.18
8.2.140.0000.00824.66
8.2.130.0050.00320.79
8.2.120.0060.00326.35
8.2.110.0040.00422.20
8.2.100.0040.00817.91
8.2.90.0080.00018.16
8.2.80.0080.00017.97
8.2.70.0040.00417.91
8.2.60.0070.00317.93
8.2.50.0000.00818.10
8.2.40.0000.00720.43
8.2.30.0070.00019.63
8.2.20.0000.00817.72
8.2.10.0030.00518.12
8.2.00.0070.00018.19
8.1.280.0070.00725.92
8.1.270.0100.01021.99
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0090.00023.92
8.1.230.0040.00819.01
8.1.220.0050.00217.88
8.1.210.0030.00618.77
8.1.200.0030.00617.36
8.1.190.0120.00417.25
8.1.180.0000.00818.10
8.1.170.0090.00018.71
8.1.160.0000.00720.89
8.1.150.0040.00420.66
8.1.140.0080.00019.63
8.1.130.0030.00517.64
8.1.120.0030.00517.52
8.1.110.0040.00417.52
8.1.100.0030.00617.46
8.1.90.0000.00717.48
8.1.80.0000.00817.44
8.1.70.0040.00417.46
8.1.60.0080.00017.59
8.1.50.0050.00317.46
8.1.40.0080.00017.42
8.1.30.0040.00417.52
8.1.20.0030.00517.59
8.1.10.0050.00317.63
8.1.00.0030.00617.41
8.0.300.0060.00319.66
8.0.290.0080.00016.63
8.0.280.0040.00418.56
8.0.270.0000.00717.19
8.0.260.0000.00817.26
8.0.250.0000.00716.95
8.0.240.0070.00016.92
8.0.230.0000.00716.90
8.0.220.0000.00817.03
8.0.210.0050.00216.96
8.0.200.0060.00016.95
8.0.190.0040.00417.03
8.0.180.0070.00016.92
8.0.170.0000.00716.93
8.0.160.0070.00017.00
8.0.150.0070.00016.95
8.0.140.0050.00216.91
8.0.130.0050.00013.34
8.0.120.0060.00316.91
8.0.110.0040.00416.88
8.0.100.0050.00216.96
8.0.90.0030.00316.99
8.0.80.0030.01416.96
8.0.70.0000.00716.77
8.0.60.0000.00816.88
8.0.50.0050.00216.82
8.0.30.0070.00917.11
8.0.20.0120.00617.43
8.0.10.0050.00316.95
8.0.00.0080.01016.85
7.4.330.0000.00616.66
7.4.320.0000.00616.53
7.4.300.0060.00016.64
7.4.290.0030.00316.60
7.4.280.0040.00416.49
7.4.270.0050.00216.53
7.4.260.0000.00716.44
7.4.250.0030.00516.50
7.4.240.0070.00016.59
7.4.230.0000.00716.63
7.4.220.0000.00716.32
7.4.210.0060.00916.38
7.4.200.0070.00316.35
7.4.160.0100.00616.69
7.4.150.0060.01317.40
7.4.140.0100.00817.86
7.4.130.0130.01016.62
7.4.120.0060.01016.64
7.4.110.0170.00316.59
7.4.100.0040.01216.60
7.4.90.0070.01016.51
7.4.80.0120.01219.39
7.4.70.0080.01116.35
7.4.60.0070.01016.45
7.4.50.0000.01316.60
7.4.40.0120.00816.46
7.4.30.0100.00716.72
7.4.00.0030.01115.02
7.3.330.0030.00313.30
7.3.320.0000.00613.39
7.3.310.0070.00016.39
7.3.300.0030.00316.48
7.3.290.0060.01016.42
7.3.280.0110.00816.40
7.3.270.0070.01017.40
7.3.260.0070.01016.44
7.3.250.0100.00816.50
7.3.240.0120.00516.58
7.3.230.0110.00716.39
7.3.210.0140.00316.58
7.3.200.0130.01016.61
7.3.190.0080.00816.66
7.3.180.0060.01016.34
7.3.170.0110.00516.45
7.3.160.0110.01016.68
7.3.120.0070.01014.97
7.3.110.0110.00714.91
7.3.100.0070.00715.01
7.3.90.0070.00714.62
7.3.80.0090.00614.78
7.3.70.0000.01514.82
7.3.60.0130.00014.86
7.3.50.0080.00814.79
7.3.40.0030.00914.67
7.3.30.0030.01414.56
7.3.20.0150.00316.26
7.3.10.0070.00816.64
7.3.00.0080.00516.57
7.2.330.0130.01016.59
7.2.320.0130.01016.65
7.2.310.0170.00716.68
7.2.300.0030.01416.68
7.2.290.0130.00916.68
7.2.250.0040.01514.96
7.2.240.0070.01014.65
7.2.230.0060.00615.21
7.2.220.0030.01015.16
7.2.210.0040.01214.89
7.2.200.0000.01614.71
7.2.190.0050.00514.97
7.2.180.0160.00014.70
7.2.170.0090.00614.99
7.2.130.0110.00417.06
7.2.120.0060.00616.87
7.2.110.0000.01016.84
7.2.100.0000.01416.83
7.2.90.0060.00916.68
7.2.80.0000.01316.81
7.2.70.0060.00917.03
7.2.60.0140.00116.88
7.2.50.0040.00816.80
7.2.40.0030.01216.82
7.2.30.0090.00616.89
7.2.20.0000.01016.93
7.2.10.0000.01616.73
7.2.00.0060.00617.82
7.1.330.0060.00915.64
7.1.320.0060.00615.61
7.1.310.0100.00715.71
7.1.300.0070.01015.55
7.1.290.0100.00315.76
7.1.280.0080.00815.59
7.1.270.0070.01115.85
7.1.260.0030.01015.82
7.1.250.0060.00715.86
7.1.240.0120.00015.59
7.1.230.0070.00715.96
7.1.220.0030.00615.77
7.1.210.0040.01115.93
7.1.200.0090.00515.86
7.1.190.0090.00315.93
7.1.180.0030.01315.88
7.1.170.0040.00815.86
7.1.160.0070.00715.71
7.1.150.0050.00315.78
7.1.140.0070.00715.92
7.1.130.0090.00615.83
7.1.120.0030.00915.65
7.1.110.0000.00915.75
7.1.100.0010.01017.07
7.1.90.0060.00616.01
7.1.80.0070.00715.88
7.1.70.0070.00416.49
7.1.60.0030.01316.55
7.1.50.0030.00916.21
7.1.40.0020.01216.29
7.1.30.0040.01016.27
7.1.20.0050.00616.29
7.1.10.0050.01116.04
7.1.00.0020.01116.33
7.0.330.0070.00415.52
7.0.320.0130.00015.22
7.0.310.0040.00815.32
7.0.300.0000.01515.29
7.0.290.0080.00515.41
7.0.280.0100.00315.52
7.0.270.0060.00315.30
7.0.260.0040.01115.24
7.0.250.0070.00415.46
7.0.240.0070.00715.52
7.0.230.0030.00915.26
7.0.220.0100.00315.46
7.0.210.0080.00015.43
7.0.200.0050.00716.06
7.0.190.0030.00916.20
7.0.180.0030.00815.85
7.0.170.0050.00915.91
7.0.160.0040.00716.06
7.0.150.0040.01215.84
7.0.140.0010.00915.95
7.0.130.0020.01215.96
7.0.120.0040.00615.95
7.0.110.0040.01115.92
7.0.100.0040.00915.84
7.0.90.0030.01115.94
7.0.80.0070.00816.04
7.0.70.0040.00915.98
7.0.60.0070.00415.91
7.0.50.0060.00715.95
7.0.40.0020.00914.76
7.0.30.0040.00414.81
7.0.20.0050.00614.75
7.0.10.0020.01114.84
7.0.00.0030.01014.72
5.6.380.0070.01014.77
5.6.370.0070.00714.43
5.6.360.0070.00414.09
5.6.350.0040.00714.64
5.6.340.0110.00014.21
5.6.330.0000.01114.25
5.6.320.0060.00614.29
5.6.310.0070.00714.40
5.6.300.0040.04017.50
5.6.290.0070.02517.48
5.6.280.0090.02317.60
5.6.270.0060.02617.70
5.6.260.0040.02517.54
5.6.250.0080.02217.73
5.6.240.0040.03317.76
5.6.230.0080.03217.65
5.6.220.0080.02917.58
5.6.210.0070.02217.82
5.6.200.0100.03417.56
5.6.190.0020.02617.59
5.6.180.0070.02317.77
5.6.170.0070.02817.47
5.6.160.0020.02917.50
5.6.150.0060.02617.69
5.6.140.0090.02617.60
5.6.130.0030.02517.48
5.6.120.0060.03117.50
5.6.110.0100.01917.57
5.6.100.0060.04617.70
5.6.90.0050.02617.56
5.6.80.0070.03117.37
5.6.70.0030.04317.33
5.6.60.0070.04417.21
5.6.50.0030.02217.16
5.6.40.0080.02817.14
5.6.30.0050.03017.38
5.6.20.0050.03017.19
5.6.10.0010.03317.20
5.6.00.0080.04417.34
5.5.380.0050.02014.49
5.5.370.0050.04014.36
5.5.360.0010.02314.27
5.5.350.0030.03314.42
5.5.340.0030.02414.49
5.5.330.0030.02514.52
5.5.320.0020.02514.79
5.5.310.0030.04214.78
5.5.300.0050.02214.62
5.5.290.0020.03914.63
5.5.280.0020.02514.69
5.5.270.0020.03014.72
5.5.260.0050.05214.63
5.5.250.0090.01914.49
5.5.240.0050.02314.15
5.5.230.0030.02214.44
5.5.220.0000.03014.24
5.5.210.0030.02314.24
5.5.200.0020.04114.14
5.5.190.0050.02414.19
5.5.180.0040.03114.34
5.5.170.0000.01211.11
5.5.160.0030.02614.23
5.5.150.0080.03714.40
5.5.140.0020.02814.23
5.5.130.0050.03114.37
5.5.120.0000.02314.31
5.5.110.0030.03714.20
5.5.100.0070.04314.21
5.5.90.0080.02314.17
5.5.80.0030.03314.05
5.5.70.0030.02414.13
5.5.60.0030.04014.23
5.5.50.0110.02214.16
5.5.40.0050.02314.18
5.5.30.0020.02214.30
5.5.20.0020.02614.30
5.5.10.0070.02614.16
5.5.00.0020.02814.16

preferences:
52.98 ms | 401 KiB | 5 Q