3v4l.org

run code in 300+ PHP versions simultaneously
; <?php $arrays = array( 0 => array( 0 => 'one', 1 => 'two', 2 => 'three' ), 1 => array( 0 => 'four', 1 => 'five', 2 => 'six' ), 2 => array( 0 => 'seven', 1 => 'eight', 2 => 'nine' ) ); print_r(array_reduce($arrays, function($carry, $item) { $carry += $item; return $carry; }, []));

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.0110.00418.36
8.3.50.0110.00522.84
8.3.40.0170.00018.88
8.3.30.0140.00718.94
8.3.20.0040.00420.33
8.3.10.0080.00023.58
8.3.00.0040.00419.15
8.2.180.0090.00916.38
8.2.170.0040.01122.96
8.2.160.0070.00720.35
8.2.150.0070.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00421.10
8.2.110.0060.00320.53
8.2.100.0040.00818.22
8.2.90.0080.00019.21
8.2.80.0080.00017.97
8.2.70.0030.00617.75
8.2.60.0030.00518.03
8.2.50.0040.00418.07
8.2.40.0070.00018.16
8.2.30.0070.00018.09
8.2.20.0020.00517.73
8.2.10.0050.00318.23
8.2.00.0000.00817.62
8.1.280.0110.00725.92
8.1.270.0030.00623.79
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0100.00023.96
8.1.230.0000.01119.28
8.1.220.0050.00317.91
8.1.210.0030.00618.77
8.1.200.0040.00417.47
8.1.190.0060.00317.23
8.1.180.0040.00418.10
8.1.170.0080.00018.58
8.1.160.0070.00021.93
8.1.150.0030.00318.80
8.1.140.0000.00817.44
8.1.130.0000.00717.79
8.1.120.0040.00417.38
8.1.110.0000.00717.37
8.1.100.0030.00617.47
8.1.90.0000.00817.36
8.1.80.0000.00717.45
8.1.70.0030.00317.41
8.1.60.0030.00917.57
8.1.50.0000.00817.56
8.1.40.0090.00017.47
8.1.30.0030.00517.48
8.1.20.0000.00817.65
8.1.10.0070.00017.42
8.1.00.0030.00517.50
8.0.300.0080.00018.77
8.0.290.0000.00816.75
8.0.280.0000.00718.44
8.0.270.0030.00317.18
8.0.260.0070.00017.25
8.0.250.0030.00316.94
8.0.240.0090.00016.97
8.0.230.0080.00017.00
8.0.220.0040.00416.90
8.0.210.0040.00416.88
8.0.200.0060.00017.00
8.0.190.0030.00517.02
8.0.180.0040.00416.98
8.0.170.0000.00717.02
8.0.160.0040.00316.84
8.0.150.0030.00316.96
8.0.140.0080.00016.91
8.0.130.0000.00513.42
8.0.120.0040.00416.83
8.0.110.0070.00016.93
8.0.100.0080.00016.82
8.0.90.0000.00716.91
8.0.80.0090.00616.84
8.0.70.0040.00416.89
8.0.60.0050.00316.95
8.0.50.0040.00416.98
8.0.30.0110.00817.04
8.0.20.0070.01217.40
8.0.10.0040.00417.05
8.0.00.0090.00816.78
7.4.330.0060.00015.00
7.4.320.0030.00316.61
7.4.300.0030.00316.50
7.4.290.0070.00016.41
7.4.280.0030.00616.50
7.4.270.0030.00616.41
7.4.260.0000.00716.53
7.4.250.0040.00416.55
7.4.240.0060.00116.51
7.4.230.0070.00016.61
7.4.220.0100.00716.71
7.4.210.0190.00016.55
7.4.200.0030.00316.57
7.4.160.0040.01916.45
7.4.150.0090.01417.40
7.4.140.0080.01317.86
7.4.130.0110.00616.47
7.4.120.0080.01016.41
7.4.110.0130.00716.45
7.4.100.0070.01116.62
7.4.90.0070.01016.60
7.4.80.0140.01419.39
7.4.70.0130.00316.46
7.4.60.0120.00616.38
7.4.50.0050.00516.46
7.4.40.0090.00916.54
7.4.30.0100.00616.37
7.4.00.0100.00714.86
7.3.330.0030.00313.27
7.3.320.0050.00013.18
7.3.310.0040.00416.25
7.3.300.0030.00316.30
7.3.290.0100.00616.28
7.3.280.0060.01116.26
7.3.270.0070.01017.40
7.3.260.0120.00816.30
7.3.250.0070.01316.53
7.3.240.0100.00716.57
7.3.230.0170.00416.63
7.3.210.0070.01316.66
7.3.200.0070.01019.39
7.3.190.0150.00916.59
7.3.180.0120.00316.44
7.3.170.0100.00716.30
7.3.160.0040.01116.53
7.3.120.0060.00914.86
7.3.110.0100.00514.77
7.3.100.0060.01014.77
7.3.90.0030.01014.79
7.3.80.0080.00714.72
7.3.70.0040.00714.74
7.3.60.0030.01414.68
7.3.50.0070.00614.58
7.3.40.0050.00914.84
7.3.30.0070.00814.73
7.3.20.0050.00916.56
7.3.10.0080.00916.80
7.3.00.0030.01016.56
7.2.330.0100.00716.70
7.2.320.0060.01016.53
7.2.310.0090.00816.54
7.2.300.0120.00616.59
7.2.290.0060.01016.48
7.2.250.0050.01214.71
7.2.240.0090.00814.78
7.2.230.0040.01115.00
7.2.220.0010.01114.90
7.2.210.0020.01214.80
7.2.200.0060.00914.81
7.2.190.0070.00615.04
7.2.180.0090.00614.84
7.2.170.0070.00914.90
7.2.160.0080.00414.91
7.2.150.0060.00616.55
7.2.140.0060.00916.89
7.2.130.0090.00616.92
7.2.120.0040.00716.86
7.2.110.0040.01216.67
7.2.100.0060.00616.72
7.2.90.0060.00616.85
7.2.80.0080.00816.95
7.2.70.0030.01316.84
7.2.60.0070.01016.63
7.2.50.0070.01016.98
7.2.40.0030.01316.78
7.2.30.0030.01017.04
7.2.20.0100.00316.66
7.2.10.0030.01316.88
7.2.00.0100.00316.73
7.1.330.0070.01015.66
7.1.320.0070.00415.67
7.1.310.0070.00515.60
7.1.300.0110.00315.88
7.1.290.0070.00515.72
7.1.280.0070.00815.65
7.1.270.0010.01315.70
7.1.260.0050.01015.59
7.1.250.0090.00915.63
7.1.70.0120.00416.86
7.1.60.0100.01319.46
7.1.50.0080.01117.05
7.1.00.0070.08722.46
7.0.200.0000.00916.67
7.0.140.0030.07721.98
7.0.60.0070.07720.10
7.0.50.0030.08017.86
7.0.40.0000.04720.13
7.0.30.0170.04720.30
7.0.20.0300.05320.08
7.0.10.0100.08720.19
7.0.00.0100.05720.31
5.6.280.0000.07320.78
5.6.210.0100.08020.77
5.6.200.0030.06718.18
5.6.190.0070.09020.68
5.6.180.0370.07020.77
5.6.170.0300.07720.53
5.6.160.0070.07320.56
5.6.150.0130.06318.14
5.6.140.0000.06718.23
5.6.130.0070.08018.10
5.6.120.0000.07320.75
5.6.110.0070.09321.03
5.6.100.0070.08720.99
5.6.90.0030.04020.95
5.6.80.0070.05720.38
5.5.350.0200.08020.43
5.5.340.0070.07018.05
5.5.330.0130.07020.21
5.5.320.0370.04320.29
5.5.310.0270.04020.27
5.5.300.0030.07018.01
5.5.290.0100.08017.96
5.5.280.0130.08020.88
5.5.270.0130.06720.78
5.5.260.0070.04020.89
5.5.250.0170.07020.58
5.5.240.0100.07320.07
5.4.450.0270.05019.41
5.4.440.1170.04019.47
5.4.430.0700.04019.27
5.4.420.0830.04019.45
5.4.410.0700.03019.33
5.4.400.0570.04718.85
5.4.390.0700.04319.11
5.4.380.0530.05318.78
5.4.370.0930.05718.47
5.4.360.0400.05718.57
5.4.350.0300.05718.73
5.4.340.0400.04318.74
5.4.320.0100.04412.50
5.4.310.0050.05012.50
5.4.300.0090.04012.50
5.4.290.0070.03912.50
5.4.280.0070.04012.40
5.4.270.0130.04412.39
5.4.260.0070.04112.39
5.4.250.0040.04012.40
5.4.240.0040.03912.39
5.4.230.0050.04012.38
5.4.220.0080.03412.39
5.4.210.0070.03512.39
5.4.200.0090.03412.39
5.4.190.0090.03312.39
5.4.180.0070.03612.38
5.4.170.0080.03312.39
5.4.160.0100.04412.39
5.4.150.0090.03812.39
5.4.140.0080.04512.07
5.4.130.0050.04712.06
5.4.120.0060.03512.02
5.4.110.0090.03712.01
5.4.100.0060.04212.02
5.4.90.0070.03712.01
5.4.80.0060.03812.01
5.4.70.0090.03312.01
5.4.60.0100.04312.01
5.4.50.0100.04712.01
5.4.40.0060.05012.00
5.4.30.0100.04511.99
5.4.20.0060.05112.00
5.4.10.0040.05211.99
5.4.00.0070.05011.48
5.3.290.0080.05412.80
5.3.280.0060.05112.71
5.3.270.0090.04312.72
5.3.260.0090.04112.72
5.3.250.0080.04212.72
5.3.240.0050.03812.72
5.3.230.0080.03612.70
5.3.220.0110.03212.68
5.3.210.0100.03512.68
5.3.200.0110.03712.68
5.3.190.0070.03712.68
5.3.180.0080.03412.67
5.3.170.0040.03912.67
5.3.160.0060.03912.68
5.3.150.0060.03712.67
5.3.140.0090.03412.66
5.3.130.0060.03912.66
5.3.120.0030.04212.66
5.3.110.0110.04212.66
5.3.100.0060.03812.12
5.3.90.0080.03912.11
5.3.80.0030.03912.09
5.3.70.0030.04012.09
5.3.60.0100.04212.08
5.3.50.0110.04712.02
5.3.40.0090.05012.03
5.3.30.0130.05511.98
5.3.20.0070.05011.77
5.3.10.0100.04711.73
5.3.00.0100.04911.72
5.2.170.0090.0449.18
5.2.160.0080.0389.18
5.2.150.0040.0389.18
5.2.140.0030.0339.18
5.2.130.0040.0329.14
5.2.120.0080.0299.14
5.2.110.0070.0319.15
5.2.100.0030.0349.14
5.2.90.0040.0359.14
5.2.80.0060.0369.14
5.2.70.0050.0329.14
5.2.60.0070.0409.09
5.2.50.0110.0409.06
5.2.40.0120.0359.04
5.2.30.0060.0379.01
5.2.20.0060.0359.00
5.2.10.0090.0298.93
5.2.00.0040.0338.78
5.1.60.0040.0268.07
5.1.50.0040.0278.06
5.1.40.0070.0218.05
5.1.30.0050.0288.39
5.1.20.0050.0278.42
5.1.10.0060.0318.14
5.1.00.0050.0258.14
5.0.50.0070.0196.62
5.0.40.0070.0246.48
5.0.30.0070.0376.30
5.0.20.0070.0236.26
5.0.10.0040.0276.24
5.0.00.0030.0326.23
4.4.90.0020.0164.77
4.4.80.0010.0174.76
4.4.70.0040.0144.75
4.4.60.0030.0154.76
4.4.50.0020.0164.77
4.4.40.0020.0284.71
4.4.30.0020.0164.75
4.4.20.0030.0154.85
4.4.10.0030.0164.85
4.4.00.0030.0254.76
4.3.110.0010.0194.67
4.3.100.0030.0144.67
4.3.90.0010.0164.63
4.3.80.0020.0254.59
4.3.70.0010.0164.63
4.3.60.0040.0134.63
4.3.50.0040.0144.63
4.3.40.0020.0254.54
4.3.30.0000.0183.29
4.3.20.0020.0163.26
4.3.10.0030.0153.23
4.3.00.0230.01318.41

preferences:
46.25 ms | 401 KiB | 5 Q