3v4l.org

run code in 300+ PHP versions simultaneously
<?php $items = array( array( array("Color" => "Blue"), array("Size" => "S") ), array( array("Color" => "Blue"), array("Size" => "M") ) ); $new_items = array_map(function ($item) { $seed = array(); return array_reduce($item, function ($seed, $key_values) { return array_map(function ($value) { $seed[] = $value; }, $key_values); return $seed; }, array()); }, $items); var_dump($new_items);

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.40.0040.01818.63
8.3.30.0070.00718.89
8.3.20.0040.00420.34
8.3.10.0080.00021.95
8.3.00.0050.00222.39
8.2.170.0090.00622.96
8.2.160.0030.01020.47
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0200.00026.16
8.2.120.0030.00519.66
8.2.110.0090.00020.35
8.2.100.0120.00017.91
8.2.90.0060.00319.21
8.2.80.0090.00017.97
8.2.70.0030.00517.63
8.2.60.0080.00018.03
8.2.50.0040.00418.07
8.2.40.0050.00318.34
8.2.30.0050.00218.14
8.2.20.0040.00417.74
8.2.10.0060.00317.63
8.2.00.0040.00417.82
8.1.270.0080.00020.36
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0100.00023.86
8.1.230.0030.00920.95
8.1.220.0090.00017.78
8.1.210.0030.00618.77
8.1.200.0040.00717.35
8.1.190.0000.00817.35
8.1.180.0050.00220.10
8.1.170.0040.00418.45
8.1.160.0000.00722.15
8.1.150.0060.00318.55
8.1.140.0050.00217.46
8.1.130.0050.00217.84
8.1.120.0000.00717.37
8.1.110.0030.00517.50
8.1.100.0070.00017.49
8.1.90.0000.00717.37
8.1.80.0000.00817.38
8.1.70.0060.00317.46
8.1.60.0030.00617.60
8.1.50.0080.00017.56
8.1.40.0000.00917.46
8.1.30.0030.00517.57
8.1.20.0050.00317.57
8.1.10.0040.00417.47
8.1.00.0080.00317.30
8.0.300.0040.00418.77
8.0.290.0000.00816.63
8.0.280.0030.00318.39
8.0.270.0000.00717.07
8.0.260.0000.00716.82
8.0.250.0030.00316.92
8.0.240.0030.00516.91
8.0.230.0070.00016.94
8.0.220.0030.00316.81
8.0.210.0030.00416.73
8.0.200.0000.00816.98
8.0.190.0000.00916.97
8.0.180.0000.00716.92
8.0.170.0000.00816.96
8.0.160.0000.00816.85
8.0.150.0000.00716.91
8.0.140.0080.00016.86
8.0.130.0000.00613.33
8.0.120.0000.00716.98
8.0.110.0040.00416.80
8.0.100.0040.00416.71
8.0.90.0070.00016.97
8.0.80.0060.00916.96
8.0.70.0080.00016.93
8.0.60.0030.00316.96
8.0.50.0050.00316.89
8.0.30.0140.00616.90
8.0.20.0100.00817.40
8.0.10.0040.00417.04
8.0.00.0080.01416.79
7.4.330.0060.00015.00
7.4.320.0000.00716.52
7.4.300.0030.00316.62
7.4.290.0030.00316.51
7.4.280.0000.00716.63
7.4.270.0050.00316.38
7.4.260.0050.00216.59
7.4.250.0040.00416.40
7.4.240.0040.00316.53
7.4.230.0040.00416.64
7.4.220.0090.00916.63
7.4.210.0090.00516.52
7.4.200.0050.00316.71
7.4.190.0030.00316.59
7.4.160.0150.00016.64
7.4.150.0060.01617.40
7.4.140.0070.01217.86
7.4.130.0090.00916.52
7.4.120.0070.00916.45
7.4.110.0060.01216.45
7.4.100.0070.01116.41
7.4.90.0140.00516.52
7.4.80.0170.00019.39
7.4.70.0080.01416.47
7.4.60.0160.00016.53
7.4.50.0030.00616.55
7.4.40.0120.00422.77
7.4.30.0120.00616.44
7.4.10.0090.00914.84
7.4.00.0070.01014.78
7.3.330.0050.00013.38
7.3.320.0030.00313.35
7.3.310.0070.00016.36
7.3.300.0030.00316.32
7.3.290.0100.00316.31
7.3.280.0090.00816.32
7.3.270.0130.00317.40
7.3.260.0120.00816.53
7.3.250.0030.01516.48
7.3.240.0040.01316.51
7.3.230.0060.01316.48
7.3.210.0100.00716.59
7.3.200.0190.00016.54
7.3.190.0160.00616.38
7.3.180.0030.01416.55
7.3.170.0120.00816.65
7.3.160.0100.00616.32
7.3.130.0070.01114.79
7.3.120.0090.00714.53
7.3.110.0090.00614.79
7.3.100.0000.01314.57
7.3.90.0070.00714.52
7.3.80.0130.00714.61
7.3.70.0030.00914.75
7.3.60.0060.00914.87
7.3.50.0000.01314.58
7.3.40.0070.00414.70
7.3.30.0000.01214.72
7.3.20.0030.00716.70
7.3.10.0060.00616.35
7.3.00.0080.00316.79
7.2.330.0060.01216.48
7.2.320.0060.00916.54
7.2.310.0060.01216.68
7.2.300.0070.01016.68
7.2.290.0100.00616.52
7.2.260.0150.00314.98
7.2.250.0060.00615.05
7.2.240.0080.00614.96
7.2.230.0000.01614.91
7.2.220.0070.00715.10
7.2.210.0000.01615.07
7.2.200.0100.00314.65
7.2.190.0060.00614.82
7.2.180.0040.00914.95
7.2.170.0090.00015.05
7.2.160.0040.00814.98
7.2.150.0060.00616.55
7.2.140.0060.00316.69
7.2.130.0100.00716.87
7.2.120.0060.00616.77
7.2.110.0030.00716.50
7.2.100.0070.00716.59
7.2.90.0100.00716.95
7.2.80.0110.00616.95
7.2.70.0070.00316.59
7.2.60.0060.00316.63
7.2.50.0110.00417.01
7.2.40.0070.00716.69
7.2.30.0070.00716.63
7.2.20.0000.01016.62
7.2.10.0060.00616.97
7.2.00.0020.01218.13
7.1.330.0060.00615.56
7.1.320.0120.00415.52
7.1.310.0040.01115.48
7.1.300.0100.00615.86
7.1.290.0040.01115.53
7.1.280.0040.00415.76
7.1.270.0130.00315.75
7.1.260.0030.00915.75
7.1.250.0030.00915.81
7.1.240.0030.00715.70
7.1.230.0030.00715.62
7.1.220.0040.01115.73
7.1.210.0090.00615.66
7.1.200.0020.00815.78
7.1.190.0040.00815.65
7.1.180.0090.00315.62
7.1.170.0000.01315.88
7.1.160.0040.00815.83
7.1.150.0000.01215.70
7.1.140.0070.00715.83
7.1.130.0060.00915.79
7.1.120.0000.01515.75
7.1.110.0090.00315.93
7.1.100.0070.00616.89
7.1.90.0090.00015.87
7.1.80.0040.00415.90
7.1.70.0020.00816.48
7.1.60.0000.01517.67
7.1.50.0090.01016.39
7.1.40.0130.00315.61
7.1.30.0100.00715.59
7.1.20.0030.01315.64
7.1.10.0060.00915.87
7.1.00.0030.04019.13
7.0.330.0060.00315.43
7.0.320.0080.00415.34
7.0.310.0030.00915.43
7.0.300.0110.00015.47
7.0.290.0040.00715.38
7.0.280.0030.00915.33
7.0.270.0080.00415.61
7.0.260.0030.01015.59
7.0.250.0100.00315.44
7.0.240.0080.00615.25
7.0.230.0040.00715.34
7.0.220.0100.00315.32
7.0.210.0040.00715.41
7.0.200.0010.00816.06
7.0.190.0040.01115.39
7.0.180.0080.00815.44
7.0.170.0100.00715.53
7.0.160.0040.00815.48
7.0.150.0000.00915.17
7.0.140.0020.04418.70
7.0.130.0060.00915.46
7.0.120.0030.00715.54
7.0.110.0100.00315.36
7.0.100.0040.01115.31
7.0.90.0070.00715.34
7.0.80.0040.01415.11
7.0.70.0130.00015.47
7.0.60.0050.03917.67
7.0.50.0070.04016.78
7.0.40.0090.04316.84
7.0.30.0180.02716.75
7.0.20.0210.03716.82
7.0.10.0160.03516.91
7.0.00.0030.02716.83
5.6.400.0030.00914.41
5.6.390.0030.01014.09
5.6.380.0000.01314.33
5.6.370.0070.00714.49
5.6.360.0060.00814.32
5.6.350.0040.00814.64
5.6.340.0090.00314.46
5.6.330.0070.00714.20
5.6.320.0090.00614.57
5.6.310.0040.01114.62
5.6.300.0030.01314.57
5.6.290.0160.00014.36
5.6.280.0070.03817.67
5.6.270.0080.00314.34
5.6.260.0060.00314.29
5.6.250.0090.00614.43
5.6.240.0060.00914.12
5.6.230.0040.01514.57
5.6.220.0030.01114.29
5.6.210.0120.03717.54
5.6.200.0060.04616.21
5.6.190.0050.04717.55
5.6.180.1900.02417.47
5.6.170.0130.04017.50
5.6.160.0050.04517.35
5.6.150.0100.02916.26
5.6.140.0050.02416.46
5.6.130.0050.02516.27
5.6.120.0060.02417.74
5.6.110.0020.03317.69
5.6.100.0050.03817.65
5.6.90.0120.03217.65
5.6.80.0050.03717.42
5.6.70.0170.03617.27
5.6.60.0040.00714.34
5.6.50.0030.00914.32
5.6.40.0100.00714.01
5.6.30.0100.00314.22
5.6.20.0100.00714.34
5.6.10.0090.00414.33
5.6.00.0000.01614.31
5.5.380.0030.01014.20
5.5.370.0070.01114.28
5.5.360.0000.01314.37
5.5.350.0110.03917.36
5.5.340.0070.04115.97
5.5.330.0050.04817.06
5.5.320.0030.02817.17
5.5.310.0170.04217.46
5.5.300.0120.03716.31
5.5.290.0070.03015.98
5.5.280.0070.04317.64
5.5.270.0050.03217.49
5.5.260.0100.02017.74
5.5.250.0050.03917.17
5.5.240.0050.02217.35
5.5.230.0100.00314.23
5.5.220.0070.00714.48
5.5.210.0060.00614.41
5.5.200.0060.00614.02
5.5.190.0030.01014.22
5.5.180.0070.00414.04
5.5.170.0030.01014.16
5.5.160.0030.01014.27
5.5.150.0060.00614.40
5.5.140.0060.00614.41
5.5.130.0080.00413.88
5.5.120.0070.00714.11
5.5.110.0000.01514.52
5.5.100.0060.00314.09
5.5.90.0100.00314.22
5.5.80.0060.00614.03
5.5.70.0070.00714.43
5.5.60.0080.00014.09
5.5.50.0030.01314.27
5.5.40.0070.00714.34
5.5.30.0060.00613.93
5.5.20.0080.00314.39
5.5.10.0070.00314.21
5.5.00.0030.00914.41
5.4.450.0400.03315.77
5.4.440.0350.03815.73
5.4.430.0480.02215.55
5.4.420.0400.03715.65
5.4.410.0370.03015.47
5.4.400.0270.02915.21
5.4.390.0610.03115.35
5.4.380.0130.03215.26
5.4.370.0170.02015.31
5.4.360.0100.02615.36
5.4.350.0040.02511.97
5.4.340.0040.02411.97
5.4.330.0060.00011.91
5.4.320.0070.02112.21
5.4.310.0050.02012.21
5.4.300.0040.02112.21
5.4.290.0040.02512.21
5.4.280.0040.02112.16
5.4.270.0080.01912.16
5.4.260.0050.02312.16
5.4.250.0070.02915.44
5.4.240.0060.02815.43
5.4.230.0120.03015.45
5.4.220.0080.04015.38
5.4.210.0060.03315.46
5.4.200.0100.03515.43
5.4.190.0060.02815.45
5.4.180.0020.03115.46
5.4.170.0020.03715.30
5.4.160.0000.03515.43
5.4.150.0090.02515.43
5.4.140.0040.02914.18
5.4.130.0090.02414.13
5.4.120.0120.02614.19
5.4.110.0060.02514.23
5.4.100.0060.02614.28
5.4.90.0080.02814.23
5.4.80.0060.02614.18
5.4.70.0090.03314.17
5.4.60.0070.03314.21
5.4.50.0080.02514.15
5.4.40.0050.02514.21
5.4.30.0080.02514.15
5.4.20.0030.02814.20
5.4.10.0030.03414.25
5.4.00.0050.02813.89
5.3.290.0060.02212.36
5.3.280.0080.02913.30
5.3.270.0020.03013.27
5.3.260.0040.03313.22
5.3.250.0060.03013.35
5.3.240.0100.02513.33
5.3.230.0050.02813.37
5.3.220.0020.03213.29
5.3.210.0130.02013.33
5.3.200.0020.03013.29
5.3.190.0020.03113.24
5.3.180.0080.02813.29
5.3.170.0100.02513.31
5.3.160.0050.02613.35
5.3.150.0030.03113.25
5.3.140.0020.03513.19
5.3.130.0020.03313.27
5.3.120.0050.03013.33
5.3.110.0030.03113.25
5.3.100.0050.02712.98
5.3.90.0020.02912.98
5.3.80.0050.03012.96
5.3.70.0070.02713.03
5.3.60.0050.02713.00
5.3.50.0050.02812.93
5.3.40.0060.02512.97
5.3.30.0060.02813.00
5.3.20.0030.02812.81
5.3.10.0020.03412.80
5.3.00.0100.02312.83
5.2.170.0070.04011.14
5.2.160.0130.04311.14
5.2.150.0000.04311.16
5.2.140.0070.04010.98
5.2.130.0100.03711.11
5.2.120.0130.03011.04
5.2.110.0070.03311.21
5.2.100.0030.04011.19
5.2.90.0070.03711.01
5.2.80.0030.04010.99
5.2.70.0030.04011.08
5.2.60.0070.03711.06
5.2.50.0030.04011.02
5.2.40.0030.03710.76
5.2.30.0030.04011.06
5.2.20.0070.03711.11
5.2.10.0030.03710.93
5.2.00.0030.05010.80
5.1.60.0070.0309.94
5.1.50.0030.0339.93
5.1.40.0130.0409.75
5.1.30.0130.03310.24
5.1.20.0100.02710.24
5.1.10.0030.0379.84
5.1.00.0000.03710.03
5.0.50.0000.0308.45
5.0.40.0030.0238.47
5.0.30.0000.0437.98
5.0.20.0070.0208.10
5.0.10.0030.0238.22
5.0.00.0070.0378.15
4.4.90.0000.0205.70
4.4.80.0000.0205.74
4.4.70.0030.0275.75
4.4.60.0000.0205.78
4.4.50.0000.0205.86
4.4.40.0030.0305.90
4.4.30.0000.0235.83
4.4.20.0030.0235.85
4.4.10.0000.0205.76
4.4.00.0000.0375.77
4.3.110.0030.0205.69
4.3.100.0000.0205.69
4.3.90.0000.0205.61
4.3.80.0000.0335.73
4.3.70.0000.0205.70
4.3.60.0030.0175.65
4.3.50.0000.0205.70
4.3.40.0030.0305.72
4.3.30.0030.0205.54
4.3.20.0030.0205.54
4.3.10.0070.0175.54
4.3.00.0100.0236.77

preferences:
68.46 ms | 400 KiB | 5 Q