3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array('a'=>1,'b'=>2,'c'=>3); var_dump(array_reduce($a, function($result, $item) use ($a) { $key = $result ? key($result) : $a; $key = $key == 'a' ? 'aa' : $key; $result[$key] = $item; return $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.40.0110.00718.79
8.3.30.0040.01119.13
8.3.20.0070.00020.22
8.3.10.0070.00023.84
8.3.00.0080.00019.50
8.2.170.0100.00722.96
8.2.160.0070.01120.35
8.2.150.0060.00324.18
8.2.140.0040.00824.66
8.2.130.0070.00026.16
8.2.120.0040.00422.08
8.2.110.0030.00622.25
8.2.100.0040.00817.91
8.2.90.0030.00519.20
8.2.80.0050.00318.05
8.2.70.0090.00017.63
8.2.60.0070.00018.05
8.2.50.0080.00018.07
8.2.40.0080.00019.96
8.2.30.0000.00820.01
8.2.20.0040.00417.82
8.2.10.0070.00018.05
8.2.00.0110.00017.82
8.1.270.0040.00423.93
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0030.00623.87
8.1.230.0110.00019.18
8.1.220.0040.00417.76
8.1.210.0040.00418.77
8.1.200.0060.00317.35
8.1.190.0000.00817.23
8.1.180.0030.00618.10
8.1.170.0000.00818.48
8.1.160.0070.00021.94
8.1.150.0000.00718.53
8.1.140.0000.00717.46
8.1.130.0000.00717.84
8.1.120.0000.00717.48
8.1.110.0040.00417.41
8.1.100.0000.00717.37
8.1.90.0070.00017.49
8.1.80.0060.00317.45
8.1.70.0030.00317.34
8.1.60.0060.00317.64
8.1.50.0000.00817.45
8.1.40.0050.00217.45
8.1.30.0030.00517.60
8.1.20.0000.00817.70
8.1.10.0000.00717.60
8.1.00.0040.00417.41
8.0.300.0000.00718.77
8.0.290.0040.00416.93
8.0.280.0040.00418.37
8.0.270.0030.00317.17
8.0.260.0000.00817.32
8.0.250.0070.00016.90
8.0.240.0000.00716.98
8.0.230.0040.00417.03
8.0.220.0050.00216.87
8.0.210.0000.00716.85
8.0.200.0080.00016.95
8.0.190.0000.00816.98
8.0.180.0000.00716.89
8.0.170.0080.00016.89
8.0.160.0000.00716.97
8.0.150.0000.00716.79
8.0.140.0060.00316.84
8.0.130.0000.00513.38
8.0.120.0060.00316.83
8.0.110.0040.00416.79
8.0.100.0050.00216.90
8.0.90.0030.00316.99
8.0.80.0070.00716.93
8.0.70.0020.00516.81
8.0.60.0000.00816.84
8.0.50.0030.00316.91
8.0.30.0070.01417.17
8.0.20.0150.01217.40
8.0.10.0000.00817.08
8.0.00.0120.00716.84
7.4.330.0030.00315.00
7.4.320.0030.00316.57
7.4.300.0000.00616.52
7.4.290.0030.00316.56
7.4.280.0030.00316.36
7.4.270.0040.00416.56
7.4.260.0070.00016.56
7.4.250.0050.00316.37
7.4.240.0040.00416.57
7.4.230.0000.00716.64
7.4.220.0120.00616.43
7.4.210.0030.01116.63
7.4.200.0050.00216.35
7.4.190.0070.00016.67
7.4.160.0100.01016.63
7.4.150.0070.01517.40
7.4.140.0140.00517.86
7.4.130.0120.00516.52
7.4.120.0110.00616.63
7.4.110.0090.00916.58
7.4.100.0090.00916.51
7.4.90.0030.01616.66
7.4.80.0100.01119.39
7.4.70.0060.01716.48
7.4.60.0060.01116.27
7.4.50.0050.00316.39
7.4.40.0100.00716.55
7.4.30.0040.01216.31
7.4.00.0080.00915.00
7.3.330.0060.00013.43
7.3.320.0000.00613.23
7.3.310.0030.00316.34
7.3.300.0000.00716.44
7.3.290.0050.01016.45
7.3.280.0050.01316.42
7.3.270.0100.01117.40
7.3.260.0140.00316.61
7.3.250.0060.01116.38
7.3.240.0110.00616.34
7.3.230.0070.01516.43
7.3.210.0130.00316.70
7.3.200.0150.00319.39
7.3.190.0150.00316.66
7.3.180.0090.00916.29
7.3.170.0080.00816.42
7.3.160.0150.00016.38
7.3.120.0070.01114.91
7.3.110.0070.00714.92
7.3.100.0030.01315.00
7.3.90.0030.00714.74
7.3.80.0040.01114.78
7.3.70.0070.00714.93
7.3.60.0090.00414.76
7.3.50.0080.00814.98
7.3.40.0080.00414.69
7.3.30.0000.01414.80
7.3.20.0030.01516.47
7.3.10.0100.00716.56
7.3.00.0070.00916.26
7.2.330.0030.01616.73
7.2.320.0030.01316.68
7.2.310.0040.01416.32
7.2.300.0130.00716.57
7.2.290.0110.01316.73
7.2.250.0000.01615.29
7.2.240.0090.00915.23
7.2.230.0080.00814.98
7.2.220.0030.00615.16
7.2.210.0080.00315.11
7.2.200.0000.00914.98
7.2.190.0060.01015.01
7.2.180.0100.00615.03
7.2.170.0070.00714.89
7.2.130.0070.00716.59
7.2.120.0090.00616.50
7.2.110.0120.00616.22
7.2.100.0210.00016.50
7.2.90.0150.01116.55
7.2.80.0100.00716.68
7.2.70.0090.00616.61
7.2.60.0140.00716.66
7.2.50.0180.01116.46
7.2.40.0170.00316.82
7.2.30.0180.00716.86
7.2.20.0100.01016.56
7.2.10.0100.01316.67
7.2.00.0090.00918.07
7.1.330.0060.00615.66
7.1.320.0070.00415.97
7.1.310.0030.00916.04
7.1.300.0040.01115.73
7.1.290.0090.00315.76
7.1.280.0070.00315.83
7.1.270.0090.00615.93
7.1.260.0090.00415.71
7.1.250.0120.00615.83
7.1.200.0060.00615.60
7.1.100.0040.00717.75
7.1.70.0040.01117.25
7.1.60.0000.02419.46
7.1.50.0060.00916.96
7.1.00.0100.07022.33
7.0.200.0250.00415.04
7.0.140.0130.06322.10
7.0.60.0170.07019.93
7.0.50.0000.08017.87
7.0.40.0070.04320.15
7.0.30.0170.04320.24
7.0.20.0300.07020.18
7.0.10.0170.07720.16
7.0.00.0100.07320.24
5.6.280.0100.06721.03
5.6.210.0030.08020.51
5.6.200.0030.06318.22
5.6.190.0070.08320.52
5.6.180.0270.07720.48
5.6.170.0300.06320.45
5.6.160.0070.04020.52
5.6.150.0030.06318.14
5.6.140.0070.08718.18
5.6.130.0000.08018.16
5.6.120.0030.08021.13
5.6.110.0000.06721.12
5.6.100.0030.08321.11
5.6.90.0070.05321.11
5.6.80.0030.04020.51
5.6.70.4670.03320.41
5.5.350.0000.03320.34
5.5.340.0000.04017.95
5.5.330.0030.08720.28
5.5.320.0230.07720.36
5.5.310.0330.08020.27
5.5.300.0130.06718.03
5.5.290.0000.04318.04
5.5.280.0030.04720.85
5.5.270.0070.07720.83
5.5.260.0000.06320.87
5.5.250.0070.08720.55
5.5.240.0330.06020.36
5.4.450.0130.07719.60
5.4.440.0200.05719.38
5.4.430.0230.05319.62
5.4.420.0300.05719.33
5.4.410.0100.06019.44
5.4.400.0770.04719.25
5.4.390.0830.05719.25
5.4.380.0270.06318.56
5.4.370.0170.05318.53
5.4.360.0470.05318.46
5.4.350.0330.05718.79
5.4.340.0370.04718.63
5.4.320.0060.03612.50
5.4.310.0070.04012.50
5.4.300.0050.03712.50
5.4.290.0100.03712.48
5.4.280.0080.03612.38
5.4.270.0160.03212.38
5.4.260.0170.04212.38
5.4.250.0060.04812.38
5.4.240.0080.05012.38
5.4.230.0120.04912.37
5.4.220.0080.04912.37
5.4.210.0050.04412.37
5.4.200.0080.04312.37
5.4.190.0090.03812.36
5.4.180.0100.04512.37
5.4.170.0080.04412.38
5.4.160.0080.04712.38
5.4.150.0130.05212.37
5.4.140.0120.04712.05
5.4.130.0090.04812.04
5.4.120.0080.04012.00
5.4.110.0080.04711.99
5.4.100.0070.05312.00
5.4.90.0070.05312.00
5.4.80.0060.04712.00
5.4.70.0090.04211.99
5.4.60.0110.04312.00
5.4.50.0100.04712.00
5.4.40.0070.04811.98
5.4.30.0100.03711.98
5.4.20.0140.04111.98
5.4.10.0090.04111.98
5.4.00.0130.03511.46
5.3.290.0060.03912.80
5.3.280.0120.04212.71
5.3.270.0100.04412.73
5.3.260.0100.04812.72
5.3.250.0150.04112.72
5.3.240.0140.04812.72
5.3.230.0130.04812.71
5.3.220.0130.05012.68
5.3.210.0100.05312.68
5.3.200.0100.06212.68
5.3.190.0140.04512.68
5.3.180.0090.06412.67
5.3.170.0150.04212.66
5.3.160.0080.06112.67
5.3.150.0100.06112.67
5.3.140.0110.05912.66
5.3.130.0120.04512.66
5.3.120.0100.06012.66
5.3.110.0150.03812.65
5.3.100.0110.06412.12
5.3.90.0100.05312.10
5.3.80.0120.05912.09
5.3.70.0130.05712.09
5.3.60.0050.04112.07
5.3.50.0070.04412.02
5.3.40.0070.05012.02
5.3.30.0050.05111.98
5.3.20.0100.04411.76
5.3.10.0080.05011.73
5.3.00.0070.04911.72
5.2.170.0080.0419.18
5.2.160.0050.0409.18
5.2.150.0070.0399.18
5.2.140.0060.0389.18
5.2.130.0080.0399.14
5.2.120.0060.0319.14
5.2.110.0040.0359.14
5.2.100.0020.0399.14
5.2.90.0060.0339.14
5.2.80.0100.0379.14
5.2.70.0070.0349.14
5.2.60.0070.0339.09
5.2.50.0060.0319.06
5.2.40.0080.0289.04
5.2.30.0060.0319.01
5.2.20.0060.0309.00
5.2.10.0030.0328.93
5.2.00.0040.0458.78
5.1.60.0050.0388.07
5.1.50.0060.0368.06
5.1.40.0050.0388.05
5.1.30.0060.0408.39
5.1.20.0080.0338.42
5.1.10.0020.0348.14
5.1.00.0070.0298.14
5.0.50.0080.0256.62
5.0.40.0060.0236.48
5.0.30.0050.0406.29
5.0.20.0050.0216.27
5.0.10.0050.0216.24
5.0.00.0060.0356.23
4.4.90.0010.0204.78
4.4.80.0030.0184.75
4.4.70.0040.0204.75
4.4.60.0050.0194.75
4.4.50.0030.0194.77
4.4.40.0020.0344.71
4.4.30.0010.0174.76
4.4.20.0070.0174.84
4.4.10.0040.0154.85
4.4.00.0020.0264.76
4.3.110.0030.0154.67
4.3.100.0040.0214.66
4.3.90.0050.0184.63
4.3.80.0060.0314.59
4.3.70.0080.0194.63
4.3.60.0010.0214.63
4.3.50.0030.0204.63
4.3.40.0030.0254.54
4.3.30.0040.0203.29
4.3.20.0050.0203.26
4.3.10.0060.0183.22
4.3.00.0230.01016.03

preferences:
44.52 ms | 400 KiB | 5 Q