3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array('a' => array(0 => 1, 1 => 2) ,'b' => array(0 => 3, 1 => 4)); print_r(array_reduce($a, 'array_merge', $a));

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.70.0190.00318.18
8.3.60.0070.00716.36
8.3.50.0080.00721.99
8.3.40.0070.00718.54
8.3.30.0100.00318.97
8.3.20.0060.00320.05
8.3.10.0040.00423.65
8.3.00.0050.00319.56
8.2.180.0170.00316.50
8.2.170.0070.01022.96
8.2.160.0130.00020.39
8.2.150.0050.00324.18
8.2.140.0000.00724.66
8.2.130.0080.00026.16
8.2.120.0040.00419.23
8.2.110.0060.00322.26
8.2.100.0100.00018.22
8.2.90.0000.00819.13
8.2.80.0000.00817.97
8.2.70.0000.00817.62
8.2.60.0060.00617.91
8.2.50.0030.00618.07
8.2.40.0000.01019.75
8.2.30.0000.00718.19
8.2.20.0060.00317.60
8.2.10.0040.00418.05
8.2.00.0000.00817.55
8.1.280.0070.00725.92
8.1.270.0050.00323.97
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0090.00021.82
8.1.230.0000.01119.09
8.1.220.0000.00717.74
8.1.210.0040.00418.77
8.1.200.0060.00317.24
8.1.190.0000.00817.22
8.1.180.0000.00818.10
8.1.170.0000.00818.46
8.1.160.0000.00721.99
8.1.150.0000.00718.43
8.1.140.0040.00417.39
8.1.130.0040.00417.70
8.1.120.0030.00317.44
8.1.110.0070.00317.44
8.1.100.0000.00717.42
8.1.90.0000.00717.35
8.1.80.0040.00417.34
8.1.70.0040.00417.27
8.1.60.0080.00017.57
8.1.50.0030.00517.48
8.1.40.0060.00317.43
8.1.30.0030.00517.64
8.1.20.0000.00717.51
8.1.10.0080.00017.30
8.1.00.0000.00817.41
8.0.300.0020.00518.77
8.0.290.0030.00516.75
8.0.280.0070.00018.30
8.0.270.0040.00417.09
8.0.260.0070.00017.18
8.0.250.0030.00316.95
8.0.240.0000.00816.89
8.0.230.0000.00816.82
8.0.220.0000.00616.70
8.0.210.0000.00716.86
8.0.200.0030.00316.89
8.0.190.0070.00016.87
8.0.180.0050.00216.82
8.0.170.0050.00316.86
8.0.160.0030.00316.84
8.0.150.0070.00016.78
8.0.140.0040.00416.81
8.0.130.0060.00013.27
8.0.120.0040.00416.84
8.0.110.0040.00416.77
8.0.100.0000.00716.62
8.0.90.0070.00016.70
8.0.80.0060.01016.77
8.0.70.0040.00416.76
8.0.60.0060.00316.87
8.0.50.0020.00516.71
8.0.30.0150.00317.08
8.0.20.0120.00617.40
8.0.10.0050.00316.96
8.0.00.0090.01116.71
7.4.330.0000.00515.00
7.4.320.0000.00716.34
7.4.300.0000.00716.61
7.4.290.0070.00016.43
7.4.280.0070.00416.41
7.4.270.0000.00716.58
7.4.260.0000.00916.41
7.4.250.0070.00016.45
7.4.240.0070.00016.57
7.4.230.0000.00716.61
7.4.220.0060.01216.46
7.4.210.0090.00716.57
7.4.200.0050.00216.27
7.4.160.0040.01116.42
7.4.150.0090.00917.40
7.4.140.0050.01717.86
7.4.130.0090.00816.29
7.4.120.0130.00716.50
7.4.110.0130.01016.48
7.4.100.0150.00916.32
7.4.90.0160.00316.29
7.4.80.0130.01019.39
7.4.70.0170.00016.61
7.4.60.0090.01116.33
7.4.50.0040.00416.25
7.4.40.0000.01716.23
7.4.30.0090.00616.32
7.4.00.0000.00914.71
7.3.330.0000.00512.92
7.3.320.0000.00513.04
7.3.310.0030.00316.20
7.3.300.0070.00016.17
7.3.290.0030.01016.13
7.3.280.0060.01316.13
7.3.270.0100.00717.40
7.3.260.0090.01216.19
7.3.250.0080.00816.29
7.3.240.0080.00816.41
7.3.230.0060.00916.39
7.3.210.0160.00616.29
7.3.200.0060.00919.39
7.3.190.0100.00616.36
7.3.180.0070.01416.09
7.3.170.0090.00616.39
7.3.160.0090.00616.32
7.3.120.0060.00314.53
7.2.330.0030.01416.59
7.2.320.0130.00416.46
7.2.310.0060.01316.46
7.2.300.0160.00016.30
7.2.290.0080.00816.32
7.2.00.0000.01019.10
7.1.100.0000.01117.84
7.1.70.0080.00416.72
7.1.60.0000.02419.70
7.1.50.0090.01216.77
7.1.00.0030.07722.33
7.0.200.0110.00016.52
7.0.140.0100.06721.95
7.0.60.0070.06319.96
7.0.50.0070.08017.86
7.0.40.0030.07320.15
7.0.30.0230.07020.25
7.0.20.0330.06720.24
7.0.10.0130.08020.24
7.0.00.0070.04720.07
5.6.280.0030.06720.77
5.6.210.0170.08320.52
5.6.200.0000.08318.19
5.6.190.0030.08320.64
5.6.180.0300.05320.52
5.6.170.0230.06020.43
5.6.160.0070.03720.39
5.6.150.0070.03718.11
5.6.140.0030.04018.28
5.6.130.0170.07718.24
5.6.120.0070.07321.01
5.6.110.0170.05321.08
5.6.100.0070.06721.00
5.6.90.0100.07320.99
5.6.80.0030.05020.35
5.6.70.4230.03720.42
5.5.350.0100.06320.37
5.5.340.0030.05018.07
5.5.330.0070.06720.43
5.5.320.0130.05320.28
5.5.310.0300.07320.34
5.5.300.0030.08018.08
5.5.290.0030.05017.95
5.5.280.0000.04320.79
5.5.270.0100.07720.82
5.5.260.0130.07020.75
5.5.250.0000.04720.63
5.5.240.0070.07720.22
5.4.450.0430.04743.90
5.4.440.0330.04043.86
5.4.430.0170.04343.79
5.4.420.0300.03743.77
5.4.410.0300.04043.77
5.4.400.0430.04043.77
5.4.390.0370.04343.77
5.4.380.0100.06318.63
5.4.370.0130.05018.59
5.4.360.0200.04318.73
5.4.350.0130.05718.68
5.4.340.0130.05318.72
5.4.320.0070.03512.48
5.4.310.0080.03712.48
5.4.300.0050.04212.48
5.4.290.0070.03712.48
5.4.280.0050.03612.38
5.4.270.0020.04012.38
5.4.260.0050.03912.38
5.4.250.0050.03812.38
5.4.240.0060.03512.38
5.4.230.0080.04212.37
5.4.220.0070.03412.37
5.4.210.0070.04012.37
5.4.200.0090.03912.37
5.4.190.0050.03812.37
5.4.180.0120.04112.37
5.4.170.0100.03812.38
5.4.160.0120.04812.37
5.4.150.0070.03512.37
5.4.140.0060.04012.05
5.4.130.0100.04112.04
5.4.120.0080.04212.00
5.4.110.0070.03812.00
5.4.100.0080.03611.99
5.4.90.0060.03812.00
5.4.80.0110.03711.99
5.4.70.0110.03911.99
5.4.60.0060.03411.99
5.4.50.0080.05011.99
5.4.40.0070.04011.98
5.4.30.0070.03411.98
5.4.20.0050.03611.98
5.4.10.0070.03811.98
5.4.00.0120.03511.47
5.3.290.0130.03812.80
5.3.280.0060.03812.71
5.3.270.0080.04812.73
5.3.260.0060.03912.72
5.3.250.0070.03612.72
5.3.240.0100.04012.72
5.3.230.0080.03512.71
5.3.220.0050.04412.68
5.3.210.0090.04012.68
5.3.200.0030.04512.68
5.3.190.0090.04512.68
5.3.180.0100.04412.67
5.3.170.0040.03912.67
5.3.160.0060.03912.67
5.3.150.0100.04012.67
5.3.140.0080.03612.66
5.3.130.0060.03812.66
5.3.120.0070.03712.66
5.3.110.0080.04312.66
5.3.100.0070.03712.12
5.3.90.0080.03412.09
5.3.80.0080.04512.07
5.3.70.0060.03512.08
5.3.60.0120.03412.07
5.3.50.0070.03612.01
5.3.40.0050.03612.01
5.3.30.0060.03411.97
5.3.20.0060.03511.75
5.3.10.0060.03411.72
5.3.00.0070.03411.70
5.2.170.0060.0299.18
5.2.160.0050.0289.18
5.2.150.0050.0319.18
5.2.140.0060.0329.17
5.2.130.0040.0299.14
5.2.120.0050.0279.13
5.2.110.0040.0299.14
5.2.100.0040.0299.14
5.2.90.0040.0299.14
5.2.80.0020.0369.14
5.2.70.0030.0319.13
5.2.60.0020.0329.09
5.2.50.0020.0339.05
5.2.40.0070.0389.03
5.2.30.0050.0299.01
5.2.20.0040.0289.00
5.2.10.0030.0298.92
5.2.00.0080.0298.77
5.1.60.0050.0268.06
5.1.50.0030.0258.05
5.1.40.0040.0318.04
5.1.30.0060.0308.39
5.1.20.0050.0318.41
5.1.10.0060.0238.14
5.1.00.0040.0258.13
5.0.50.0020.0236.61
5.0.40.0030.0196.47
5.0.30.0030.0326.29
5.0.20.0030.0206.27
5.0.10.0040.0206.24
5.0.00.0040.0306.24
4.4.90.0030.0174.78
4.4.80.0030.0154.75
4.4.70.0060.0134.75
4.4.60.0030.0154.76
4.4.50.0040.0164.77
4.4.40.0030.0264.71
4.4.30.0040.0134.76
4.4.20.0030.0234.84
4.4.10.0050.0184.85
4.4.00.0030.0284.76
4.3.110.0030.0154.66
4.3.100.0010.0164.66
4.3.90.0030.0144.64
4.3.80.0050.0284.58
4.3.70.0060.0164.63
4.3.60.0060.0154.62
4.3.50.0070.0154.63
4.3.40.0040.0264.54
4.3.30.0030.0233.29
4.3.20.0030.0243.27
4.3.10.0030.0143.23
4.3.00.0000.02043.77

preferences:
46.65 ms | 401 KiB | 5 Q