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, 'array_merge', []));

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.43
8.3.50.0100.01022.93
8.3.40.0110.00718.67
8.3.30.0070.00718.98
8.3.20.0080.00020.12
8.3.10.0000.00723.66
8.3.00.0000.00819.26
8.2.180.0170.00318.11
8.2.170.0100.00322.96
8.2.160.0040.01120.52
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0040.00421.09
8.2.110.0100.00019.30
8.2.100.0060.00617.80
8.2.90.0040.00419.08
8.2.80.0080.00017.97
8.2.70.0000.00817.50
8.2.60.0000.00717.93
8.2.50.0050.00318.10
8.2.40.0040.00418.03
8.2.30.0050.00217.92
8.2.20.0000.00717.43
8.2.10.0000.00817.93
8.2.00.0070.00017.67
8.1.280.0120.00325.92
8.1.270.0030.00523.87
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0000.00922.66
8.1.230.0040.00817.52
8.1.220.0060.00317.79
8.1.210.0040.00418.77
8.1.200.0060.00317.25
8.1.190.0090.00017.23
8.1.180.0000.00918.10
8.1.170.0050.00318.50
8.1.160.0040.00421.86
8.1.150.0000.00818.72
8.1.140.0070.00017.44
8.1.130.0030.00317.78
8.1.120.0000.00717.43
8.1.110.0030.00517.36
8.1.100.0000.00717.30
8.1.90.0000.00717.32
8.1.80.0040.00417.38
8.1.70.0070.00017.31
8.1.60.0090.00017.41
8.1.50.0080.00017.33
8.1.40.0040.00417.42
8.1.30.0030.00517.59
8.1.20.0030.00617.55
8.1.10.0040.00417.31
8.1.00.0000.00817.36
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0030.00318.38
8.0.270.0000.00717.09
8.0.260.0000.00717.29
8.0.250.0030.00316.90
8.0.240.0040.00416.77
8.0.230.0030.00516.79
8.0.220.0040.00416.81
8.0.210.0070.00016.68
8.0.200.0030.00316.83
8.0.190.0000.00716.77
8.0.180.0030.00516.75
8.0.170.0040.00416.68
8.0.160.0000.00816.70
8.0.150.0000.00716.72
8.0.140.0000.00716.77
8.0.130.0050.00013.21
8.0.120.0040.00416.79
8.0.110.0070.00016.72
8.0.100.0080.00016.65
8.0.90.0050.00216.82
8.0.80.0110.00916.76
8.0.70.0000.00716.86
8.0.60.0000.00716.76
8.0.50.0080.00016.93
8.0.30.0100.01316.97
8.0.20.0110.00717.40
8.0.10.0050.00316.99
8.0.00.0060.01116.83
7.4.330.0050.00215.00
7.4.320.0030.00316.47
7.4.300.0000.00816.41
7.4.290.0080.00016.58
7.4.280.0040.00416.42
7.4.270.0040.00416.42
7.4.260.0030.00316.37
7.4.250.0030.00516.48
7.4.240.0030.00416.45
7.4.230.0030.00316.64
7.4.220.0070.01316.46
7.4.210.0080.00816.46
7.4.200.0000.00716.41
7.4.160.0060.00916.33
7.4.150.0100.01017.40
7.4.140.0080.01617.86
7.4.130.0100.00816.45
7.4.120.0090.00816.41
7.4.110.0130.00616.50
7.4.100.0030.01316.29
7.4.90.0000.01716.37
7.4.80.0090.00919.39
7.4.70.0120.00616.39
7.4.60.0100.01316.48
7.4.50.0000.00816.27
7.4.40.0090.01216.22
7.4.30.0110.00516.44
7.4.00.0090.00914.90
7.3.330.0020.00212.89
7.3.320.0030.00312.88
7.3.310.0050.00316.28
7.3.300.0070.00016.16
7.3.290.0070.00716.14
7.3.280.0090.00616.11
7.3.270.0120.00917.40
7.3.260.0070.01016.34
7.3.250.0100.00716.38
7.3.240.0000.01716.50
7.3.230.0080.00816.39
7.3.210.0090.00916.18
7.3.200.0100.01319.39
7.3.190.0070.01016.50
7.3.180.0090.00916.24
7.3.170.0030.01316.27
7.3.160.0090.00616.11
7.3.120.0070.01014.75
7.3.110.0040.00814.61
7.3.100.0030.01014.62
7.3.90.0070.00714.66
7.3.80.0000.01314.78
7.3.70.0100.00714.40
7.3.60.0060.00814.80
7.3.50.0060.00914.77
7.3.40.0060.00914.77
7.3.30.0060.00914.36
7.3.20.0060.00316.61
7.3.10.0030.00816.49
7.3.00.0120.00016.66
7.2.330.0060.01016.51
7.2.320.0150.00616.57
7.2.310.0030.01316.17
7.2.300.0130.00316.51
7.2.290.0040.01216.32
7.2.240.0040.01114.67
7.2.230.0070.00714.54
7.2.220.0090.00615.11
7.2.210.0030.00714.84
7.2.200.0110.00314.98
7.2.190.0050.00514.95
7.2.180.0030.00814.80
7.2.170.0100.00714.76
7.2.160.0120.00314.62
7.2.150.0030.01416.65
7.2.140.0070.00716.76
7.2.130.0070.00516.74
7.2.120.0070.00816.65
7.2.110.0050.01016.74
7.2.100.0050.00716.81
7.2.90.0050.01116.65
7.2.80.0060.00816.69
7.2.70.0060.00716.78
7.2.60.0020.01216.75
7.2.50.0050.00916.69
7.2.40.0020.01116.72
7.2.30.0050.00716.76
7.2.20.0030.01016.82
7.2.10.0000.01316.77
7.2.00.0020.01016.76
7.1.330.0000.01415.74
7.1.320.0030.01115.60
7.1.310.0000.00815.77
7.1.300.0090.00315.62
7.1.290.0030.01315.36
7.1.280.0070.01015.39
7.1.270.0030.01015.91
7.1.260.0030.00615.44
7.1.250.0050.00915.50
7.1.200.0030.01015.30
7.1.70.0030.00617.00
7.1.60.0120.00919.46
7.1.50.0100.01016.80
7.1.00.0100.06322.37
7.0.200.0040.00416.77
7.0.140.0070.07022.18
7.0.60.0100.06319.91
7.0.50.0030.08717.96
7.0.40.0100.08320.09
7.0.30.0230.07020.28
7.0.20.0370.07720.26
7.0.10.0170.06320.25
7.0.00.0170.07720.11
5.6.280.0070.07020.89
5.6.210.0070.09020.72
5.6.200.0030.04318.20
5.6.190.0100.05720.52
5.6.180.0530.05020.63
5.6.170.0170.08720.48
5.6.160.0030.09320.47
5.6.150.0000.04318.19
5.6.140.0100.07018.18
5.6.130.0030.07018.18
5.6.120.0170.07020.70
5.6.110.0130.05720.98
5.6.100.0100.04021.13
5.6.90.0070.04320.96
5.6.80.0070.07020.38
5.5.350.0200.07320.38
5.5.340.0130.07318.05
5.5.330.0230.06720.31
5.5.320.0400.03720.27
5.5.310.0270.07320.34
5.5.300.0070.05018.07
5.5.290.0100.03317.96
5.5.280.0100.08020.68
5.5.270.0100.06020.88
5.5.260.0070.03720.87
5.5.250.0030.06720.79
5.5.240.0100.05320.28
5.4.450.0470.04719.50
5.4.440.0300.04719.27
5.4.430.0470.04019.58
5.4.420.0270.03319.54
5.4.410.0300.03719.04
5.4.400.0530.04018.88
5.4.390.0470.03319.05
5.4.380.0500.06018.78
5.4.370.0470.04318.52
5.4.360.0330.05318.52
5.4.350.0600.05018.73
5.4.340.0400.05318.78
5.4.320.0030.03912.48
5.4.310.0040.04012.48
5.4.300.0090.03412.48
5.4.290.0080.03612.48
5.4.280.0060.03712.38
5.4.270.0110.03512.38
5.4.260.0070.03612.38
5.4.250.0060.03912.38
5.4.240.0020.03912.38
5.4.230.0060.03712.37
5.4.220.0060.03512.37
5.4.210.0040.03712.37
5.4.200.0070.03512.37
5.4.190.0060.03612.37
5.4.180.0050.03812.37
5.4.170.0060.03512.38
5.4.160.0020.03912.38
5.4.150.0070.03412.37
5.4.140.0070.03512.05
5.4.130.0030.03712.04
5.4.120.0060.03412.00
5.4.110.0040.03811.99
5.4.100.0050.03611.99
5.4.90.0070.03511.99
5.4.80.0060.03712.00
5.4.70.0070.03411.99
5.4.60.0050.03511.99
5.4.50.0070.03411.99
5.4.40.0020.03811.98
5.4.30.0070.03411.98
5.4.20.0050.03511.98
5.4.10.0080.03211.98
5.4.00.0070.03411.47
5.3.290.0090.03712.80
5.3.280.0060.03712.71
5.3.270.0060.04512.72
5.3.260.0090.03812.72
5.3.250.0050.03712.72
5.3.240.0060.03612.72
5.3.230.0050.03712.71
5.3.220.0070.03412.68
5.3.210.0100.03812.68
5.3.200.0050.03712.68
5.3.190.0040.03912.68
5.3.180.0080.04312.67
5.3.170.0060.03712.67
5.3.160.0060.03812.67
5.3.150.0050.04012.67
5.3.140.0060.03512.66
5.3.130.0020.04612.66
5.3.120.0100.03812.66
5.3.110.0010.04212.66
5.3.100.0060.03612.12
5.3.90.0060.03612.09
5.3.80.0080.03312.07
5.3.70.0060.03812.07
5.3.60.0070.03512.06
5.3.50.0060.03612.00
5.3.40.0080.03412.00
5.3.30.0030.03811.95
5.3.20.0030.03711.73
5.3.10.0050.03711.70
5.3.00.0050.04111.68
5.2.170.0070.0309.18
5.2.160.0050.0299.18
5.2.150.0050.0339.19
5.2.140.0060.0289.18
5.2.130.0060.0339.14
5.2.120.0040.0289.14
5.2.110.0080.0279.15
5.2.100.0060.0279.14
5.2.90.0090.0239.14
5.2.80.0050.0289.14
5.2.70.0020.0319.14
5.2.60.0010.0339.10
5.2.50.0040.0309.06
5.2.40.0070.0349.04
5.2.30.0050.0319.01
5.2.20.0070.0259.00
5.2.10.0070.0248.92
5.2.00.0060.0318.79
5.1.60.0050.0318.07
5.1.50.0070.0278.07
5.1.40.0030.0318.05
5.1.30.0090.0338.39
5.1.20.0040.0358.42
5.1.10.0050.0298.15
5.1.00.0070.0268.14
5.0.50.0040.0246.63
5.0.40.0020.0216.48
5.0.30.0020.0326.30
5.0.20.0040.0186.26
5.0.10.0030.0196.24
5.0.00.0020.0376.23
4.4.90.0010.0174.78
4.4.80.0050.0164.76
4.4.70.0020.0164.76
4.4.60.0050.0154.75
4.4.50.0030.0174.77
4.4.40.0050.0284.71
4.4.30.0040.0154.76
4.4.20.0010.0184.84
4.4.10.0030.0194.85
4.4.00.0040.0234.76
4.3.110.0050.0174.67
4.3.100.0020.0154.66
4.3.90.0030.0144.63
4.3.80.0020.0264.59
4.3.70.0020.0174.63
4.3.60.0020.0184.63
4.3.50.0030.0194.63
4.3.40.0050.0254.54
4.3.30.0060.0173.29
4.3.20.0000.0183.26
4.3.10.0020.0163.23
4.3.00.0100.01318.41

preferences:
43.44 ms | 401 KiB | 5 Q