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[] = $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.60.0030.01716.61
8.3.50.0110.00622.05
8.3.40.0070.01018.50
8.3.30.0140.00019.27
8.3.20.0050.00220.21
8.3.10.0090.00023.66
8.3.00.0040.00419.25
8.2.180.0090.01316.38
8.2.170.0090.00622.96
8.2.160.0140.00020.52
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0070.00022.21
8.2.110.0070.00319.30
8.2.100.0060.00617.91
8.2.90.0030.00519.34
8.2.80.0060.00317.97
8.2.70.0090.00017.38
8.2.60.0000.00817.93
8.2.50.0080.00018.07
8.2.40.0060.00319.95
8.2.30.0000.00719.89
8.2.20.0040.00417.80
8.2.10.0050.00318.11
8.2.00.0080.00317.75
8.1.280.0150.00325.92
8.1.270.0070.00723.69
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00621.42
8.1.230.0000.01017.42
8.1.220.0040.00417.74
8.1.210.0030.00518.77
8.1.200.0040.00417.35
8.1.190.0040.00417.23
8.1.180.0070.00318.10
8.1.170.0000.00818.57
8.1.160.0000.00721.98
8.1.150.0040.00418.63
8.1.140.0040.00417.41
8.1.130.0030.00317.82
8.1.120.0040.00417.51
8.1.110.0000.00717.45
8.1.100.0000.00717.48
8.1.90.0030.00317.52
8.1.80.0080.00017.46
8.1.70.0000.00717.46
8.1.60.0000.00817.48
8.1.50.0030.00617.40
8.1.40.0030.00617.55
8.1.30.0040.00417.57
8.1.20.0070.00017.68
8.1.10.0040.00417.46
8.1.00.0040.00417.47
8.0.300.0020.00518.77
8.0.290.0000.01116.75
8.0.280.0000.00718.45
8.0.270.0000.00717.17
8.0.260.0080.00017.22
8.0.250.0030.00316.95
8.0.240.0030.00317.02
8.0.230.0000.00616.84
8.0.220.0030.00316.80
8.0.210.0070.00016.95
8.0.200.0030.00516.99
8.0.190.0000.00716.86
8.0.180.0040.00416.86
8.0.170.0040.00416.93
8.0.160.0000.00716.84
8.0.150.0000.00716.88
8.0.140.0050.00316.84
8.0.130.0000.00513.28
8.0.120.0040.00416.75
8.0.110.0040.00416.82
8.0.100.0000.00816.78
8.0.90.0000.00716.75
8.0.80.0030.01316.86
8.0.70.0040.00416.71
8.0.60.0040.00416.87
8.0.50.0040.00416.92
8.0.30.0110.00816.93
8.0.20.0090.00917.40
8.0.10.0040.00416.79
8.0.00.0100.00916.73
7.4.330.0040.00015.00
7.4.320.0030.00316.52
7.4.300.0030.00316.59
7.4.290.0070.00016.50
7.4.280.0000.00716.63
7.4.270.0070.00016.59
7.4.260.0040.00416.38
7.4.250.0000.00816.55
7.4.240.0040.00416.50
7.4.230.0070.00016.44
7.4.220.0150.00316.62
7.4.210.0060.01216.61
7.4.200.0000.00716.58
7.4.190.0050.00216.60
7.4.160.0100.00616.41
7.4.150.0120.01217.40
7.4.140.0050.01317.86
7.4.130.0070.00916.56
7.4.120.0140.00616.55
7.4.110.0110.00716.54
7.4.100.0130.00316.50
7.4.90.0090.01216.35
7.4.80.0150.00319.39
7.4.70.0070.01116.56
7.4.60.0070.00816.27
7.4.50.0080.00016.65
7.4.40.0030.01416.71
7.4.30.0070.01116.41
7.4.00.0100.00615.19
7.3.330.0030.00313.12
7.3.320.0060.00013.29
7.3.310.0030.00316.35
7.3.300.0000.00716.36
7.3.290.0090.00616.34
7.3.280.0070.00816.20
7.3.270.0030.01317.40
7.3.260.0140.00316.23
7.3.250.0090.01116.39
7.3.240.0060.00916.36
7.3.230.0080.01316.39
7.3.210.0040.01216.42
7.3.200.0060.01116.31
7.3.190.0090.00816.29
7.3.180.0060.01016.61
7.3.170.0100.01016.32
7.3.160.0000.01516.40
7.3.120.0060.00915.11
7.3.110.0070.01014.92
7.3.100.0100.00715.00
7.3.90.0030.01314.82
7.3.80.0030.01314.95
7.3.70.0030.01214.72
7.3.60.0000.01114.52
7.3.50.0130.00014.84
7.3.40.0130.00014.89
7.3.30.0030.01114.74
7.3.20.0000.01216.83
7.3.10.0100.01016.44
7.3.00.0090.00816.64
7.2.330.0110.01116.69
7.2.320.0100.00616.52
7.2.310.0100.00716.30
7.2.300.0110.00416.61
7.2.290.0140.00916.50
7.2.240.0110.00715.05
7.2.230.0000.01214.57
7.2.220.0040.00814.93
7.2.210.0100.00315.10
7.2.200.0060.00314.92
7.2.190.0080.00414.91
7.2.180.0060.01214.86
7.2.170.0060.00915.07
7.2.160.0040.01415.07
7.2.150.0060.00616.79
7.2.140.0100.00716.75
7.2.130.0070.00816.79
7.2.120.0120.00716.86
7.2.110.0090.00916.79
7.2.100.0020.01216.77
7.2.90.0050.00616.89
7.2.80.0070.00916.86
7.2.70.0020.01316.53
7.2.60.0030.01016.72
7.2.50.0050.00716.75
7.2.40.0110.00116.66
7.2.30.0050.01016.72
7.2.20.0020.00816.80
7.2.10.0040.01216.74
7.2.00.0080.00817.65
7.1.330.0080.00616.04
7.1.320.0070.00315.74
7.1.310.0100.00315.66
7.1.300.0090.00315.52
7.1.290.0060.00615.58
7.1.280.0100.00715.74
7.1.270.0000.01315.75
7.1.260.0030.01015.60
7.1.250.0080.00915.64
7.1.200.0030.00715.97
7.1.100.0060.00618.07
7.1.70.0000.00817.07
7.1.60.0250.00019.46
7.1.50.0090.01517.11
7.1.00.0100.06722.28
7.0.200.0240.00614.91
7.0.140.0030.07321.99
7.0.60.0130.08020.09
7.0.50.0070.08317.86
7.0.40.0100.04020.01
7.0.30.0270.08720.17
7.0.20.0200.04320.12
7.0.10.0130.08320.26
7.0.00.0100.05320.07
5.6.280.0130.06321.08
5.6.210.0170.07720.67
5.6.200.0100.07718.17
5.6.190.0070.05020.39
5.6.180.0230.03320.46
5.6.170.0230.07020.55
5.6.160.0130.08320.52
5.6.150.0070.08018.19
5.6.140.0070.05018.29
5.6.130.0000.07318.23
5.6.120.0100.07021.02
5.6.110.0100.07721.09
5.6.100.0070.08321.01
5.6.90.0070.06321.08
5.6.80.0070.07020.41
5.5.350.4130.04020.43
5.5.340.0100.04717.96
5.5.330.0130.07720.27
5.5.320.0300.07020.31
5.5.310.0230.06320.41
5.5.300.0070.05017.97
5.5.290.0070.08317.99
5.5.280.0130.03020.77
5.5.270.0100.06020.77
5.5.260.0100.08720.89
5.5.250.0130.07320.62
5.5.240.0030.08320.27
5.4.450.0130.06019.48
5.4.440.0230.05719.38
5.4.430.0170.05719.46
5.4.420.0030.06719.46
5.4.410.0270.05019.32
5.4.400.0200.06319.30
5.4.390.0200.05019.05
5.4.380.0270.05318.63
5.4.370.0230.05718.76
5.4.360.0170.05718.65
5.4.350.0330.05318.79
5.4.340.0430.06318.53
5.4.320.0080.04512.50
5.4.310.0040.05812.50
5.4.300.0060.04712.50
5.4.290.0100.06412.48
5.4.280.0130.06712.38
5.4.270.0100.03812.38
5.4.260.0060.04412.38
5.4.250.0070.04812.38
5.4.240.0120.03512.38
5.4.230.0090.04512.37
5.4.220.0060.04312.37
5.4.210.0110.04212.38
5.4.200.0090.06312.37
5.4.190.0090.04312.37
5.4.180.0060.03712.37
5.4.170.0120.04512.38
5.4.160.0040.04612.37
5.4.150.0070.04812.37
5.4.140.0080.05412.05
5.4.130.0080.04512.04
5.4.120.0110.05112.00
5.4.110.0050.04912.00
5.4.100.0070.04012.00
5.4.90.0060.04012.00
5.4.80.0090.03712.00
5.4.70.0050.03812.00
5.4.60.0080.04512.00
5.4.50.0070.05012.00
5.4.40.0060.03611.98
5.4.30.0050.04011.98
5.4.20.0080.03711.98
5.4.10.0060.03711.98
5.4.00.0050.04211.46
5.3.290.0050.04212.80
5.3.280.0070.04912.71
5.3.270.0240.06212.72
5.3.260.0260.09612.72
5.3.250.0140.08812.72
5.3.240.0120.06312.72
5.3.230.0040.04212.71
5.3.220.0100.06512.68
5.3.210.0140.07012.68
5.3.200.0080.05412.68
5.3.190.0100.05012.68
5.3.180.0180.07712.67
5.3.170.0130.08712.67
5.3.160.0200.10012.67
5.3.150.0130.05112.67
5.3.140.0100.05312.66
5.3.130.0120.05812.66
5.3.120.0080.05312.66
5.3.110.0120.06112.66
5.3.100.0080.05012.12
5.3.90.0090.05612.10
5.3.80.0120.05712.09
5.3.70.0090.07312.09
5.3.60.0110.04912.07
5.3.50.0150.06512.03
5.3.40.0170.06812.03
5.3.30.0060.05211.98
5.3.20.0080.04111.76
5.3.10.0060.03611.73
5.3.00.0030.04011.72
5.2.170.0050.0329.18
5.2.160.0050.0309.18
5.2.150.0060.0389.18
5.2.140.0110.0599.18
5.2.130.0100.0609.14
5.2.120.0130.0499.14
5.2.110.0170.1139.14
5.2.100.0030.0429.14
5.2.90.0140.0699.14
5.2.80.0060.0449.14
5.2.70.0030.0369.14
5.2.60.0040.0359.09
5.2.50.0100.0389.06
5.2.40.0090.0369.04
5.2.30.0070.0429.01
5.2.20.0060.0409.00
5.2.10.0080.0388.93
5.2.00.0070.0408.78
5.1.60.0060.0348.07
5.1.50.0040.0398.06
5.1.40.0070.0338.05
5.1.30.0100.0478.40
5.1.20.0030.0418.42
5.1.10.0090.0328.14
5.1.00.0050.0388.14
5.0.50.0050.0286.63
5.0.40.0040.0286.48
5.0.30.0050.0426.29
5.0.20.0100.0426.27
5.0.10.0040.0276.24
5.0.00.0040.0386.23
4.4.90.0070.0324.78
4.4.80.0050.0234.76
4.4.70.0070.0204.75
4.4.60.0050.0434.76
4.4.50.0040.0224.77
4.4.40.0030.0314.71
4.4.30.0080.0274.76
4.4.20.0040.0214.84
4.4.10.0060.0194.84
4.4.00.0060.0384.76
4.3.110.0040.0234.67
4.3.100.0050.0214.66
4.3.90.0030.0224.63
4.3.80.0040.0404.59
4.3.70.0070.0254.63
4.3.60.0060.0254.62
4.3.50.0040.0274.63
4.3.40.0020.0324.54
4.3.30.0040.0223.28
4.3.20.0050.0313.26
4.3.10.0060.0363.22
4.3.00.0300.01310.55

preferences:
53.36 ms | 401 KiB | 5 Q