3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array( array("item_data"=>array(1,2,3)), array("item_data"=>array(4,5,6)), array("item_data"=>array(7,8,9)) ); function merge($prev, $now) { return array_merge($prev, $now['item_data']); } $res = array_reduce($arr, "merge",array()); var_dump($res);

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.0040.01118.30
8.3.50.0080.01022.77
8.3.40.0120.00618.67
8.3.30.0070.00718.88
8.3.20.0080.00020.42
8.3.10.0080.00023.61
8.3.00.0080.00019.13
8.2.180.0090.00618.16
8.2.170.0140.00718.91
8.2.160.0070.01122.96
8.2.150.0040.01224.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0080.00021.06
8.2.110.0070.00322.07
8.2.100.0070.00420.54
8.2.90.0030.00618.16
8.2.80.0040.00418.04
8.2.70.0040.00418.05
8.2.60.0040.00418.04
8.2.50.0040.00418.10
8.2.40.0090.00318.07
8.2.30.0040.00417.98
8.2.20.0050.00317.74
8.2.10.0000.00718.04
8.2.00.0020.00517.56
8.1.280.0260.00025.92
8.1.270.0030.00623.96
8.1.260.0030.00526.35
8.1.250.0070.00028.09
8.1.240.0060.00323.84
8.1.230.0060.00620.70
8.1.220.0030.00617.74
8.1.210.0060.00318.77
8.1.200.0030.00617.23
8.1.190.0040.00417.23
8.1.180.0000.00918.10
8.1.170.0080.00018.49
8.1.160.0030.00521.96
8.1.150.0000.00718.77
8.1.140.0000.00817.39
8.1.130.0030.00317.84
8.1.120.0030.00317.45
8.1.110.0040.00417.36
8.1.100.0000.00717.42
8.1.90.0000.00717.43
8.1.80.0040.00417.43
8.1.70.0030.00517.34
8.1.60.0040.00417.58
8.1.50.0040.00417.42
8.1.40.0000.00817.32
8.1.30.0000.00917.63
8.1.20.0080.00017.59
8.1.10.0040.00417.41
8.1.00.0040.00417.43
8.0.300.0050.00219.68
8.0.290.0080.00016.63
8.0.280.0000.00718.39
8.0.270.0030.00316.70
8.0.260.0000.00717.21
8.0.250.0030.00316.95
8.0.240.0020.00516.88
8.0.230.0030.00316.87
8.0.220.0060.00016.89
8.0.210.0000.00716.86
8.0.200.0000.00616.91
8.0.190.0030.00616.83
8.0.180.0030.00416.80
8.0.170.0000.00716.88
8.0.160.0000.00716.71
8.0.150.0070.00016.68
8.0.140.0070.00016.76
8.0.130.0030.00313.30
8.0.120.0080.00016.91
8.0.110.0040.00416.73
8.0.100.0060.00316.65
8.0.90.0000.00716.69
8.0.80.0150.00616.86
8.0.70.0000.00716.73
8.0.60.0020.00516.88
8.0.50.0050.00316.66
8.0.30.0120.00916.99
8.0.20.0060.01617.40
8.0.10.0070.00016.78
8.0.00.0120.00716.64
7.4.330.0030.00315.04
7.4.320.0060.00016.55
7.4.300.0000.00616.54
7.4.290.0040.00416.53
7.4.280.0050.00316.44
7.4.270.0030.00316.48
7.4.260.0040.00716.50
7.4.250.0000.00716.41
7.4.240.0020.00516.49
7.4.230.0000.00716.34
7.4.220.0100.01616.43
7.4.210.0110.00416.48
7.4.200.0000.00716.24
7.4.160.0120.00416.37
7.4.150.0090.00917.40
7.4.140.0080.01017.86
7.4.130.0100.01016.46
7.4.120.0140.00316.52
7.4.110.0110.00616.40
7.4.100.0090.01616.47
7.4.90.0070.01016.45
7.4.80.0140.00419.39
7.4.70.0100.00716.43
7.4.60.0130.00316.37
7.4.50.0050.00016.34
7.4.40.0000.01716.41
7.4.30.0030.01816.57
7.4.00.0060.00815.01
7.3.330.0050.00013.22
7.3.320.0000.00513.26
7.3.310.0050.00216.14
7.3.300.0030.00316.05
7.3.290.0130.00716.23
7.3.280.0110.00516.20
7.3.270.0040.01717.40
7.3.260.0140.00616.52
7.3.250.0140.00616.28
7.3.240.0160.00716.28
7.3.230.0200.00316.39
7.3.210.0040.01216.18
7.3.200.0100.00719.39
7.3.190.0000.01716.45
7.3.180.0030.01416.47
7.3.170.0100.00616.59
7.3.160.0090.00616.47
7.3.120.0030.01514.63
7.3.110.0050.01014.71
7.3.100.0060.00614.88
7.3.90.0070.00814.66
7.3.80.0070.00514.80
7.3.70.0040.01214.87
7.3.60.0020.00914.71
7.3.50.0050.00714.80
7.3.40.0080.00714.58
7.3.30.0050.00914.74
7.3.20.0110.00316.62
7.3.10.0060.00816.50
7.3.00.0090.00416.35
7.2.330.0060.01216.46
7.2.320.0030.01416.57
7.2.310.0070.01016.36
7.2.300.0070.01416.23
7.2.290.0060.01316.75
7.2.250.0000.01514.84
7.2.240.0070.01215.16
7.2.230.0090.00815.18
7.2.220.0080.00815.06
7.2.210.0110.00514.91
7.2.200.0100.00714.89
7.2.190.0070.00914.89
7.2.180.0070.00715.06
7.2.170.0080.00614.95
7.2.160.0030.00915.11
7.2.150.0090.00316.84
7.2.140.0000.01016.65
7.2.130.0070.00716.96
7.2.120.0040.01116.82
7.2.110.0070.00416.98
7.2.100.0030.01316.47
7.2.90.0090.00316.77
7.2.80.0030.00716.68
7.2.70.0060.00616.73
7.2.60.0150.00016.80
7.2.50.0110.00416.75
7.2.40.0120.00017.03
7.2.30.0110.00416.81
7.2.20.0000.01416.55
7.2.10.0060.00916.90
7.2.00.0070.00716.68
7.1.330.0120.00315.77
7.1.320.0070.00915.84
7.1.310.0040.01015.71
7.1.300.0030.01115.84
7.1.290.0050.01015.82
7.1.280.0060.00615.74
7.1.270.0070.00315.75
7.1.260.0010.01415.53
7.1.250.0060.01015.50
7.1.200.0030.00715.89
7.1.70.0120.00316.86
7.1.60.0030.02019.40
7.1.50.0130.01316.58
7.1.00.0070.07322.48
7.0.200.0070.00016.38
7.0.140.0100.06721.98
7.0.60.0070.03719.93
7.0.50.0030.05317.87
7.0.40.0100.08020.10
7.0.30.0300.04720.12
7.0.20.0270.05320.08
7.0.10.0070.04720.23
7.0.00.0070.06320.25
5.6.280.0030.07321.07
5.6.210.0070.08020.70
5.6.200.0030.05018.19
5.6.190.0100.07020.77
5.6.180.0470.04320.33
5.6.170.0170.04720.46
5.6.160.0170.07320.50
5.6.150.0030.09018.16
5.6.140.0030.06318.18
5.6.130.0070.08718.16
5.6.120.0030.05020.84
5.6.110.0100.06020.98
5.6.100.0130.08021.14
5.6.90.0030.08020.89
5.6.80.0070.05720.37
5.5.350.0170.08020.44
5.5.340.0070.08717.98
5.5.330.0100.06720.41
5.5.320.0400.04720.27
5.5.310.0300.07320.42
5.5.300.0030.03718.04
5.5.290.0000.04717.99
5.5.280.0130.07320.90
5.5.270.0070.08020.73
5.5.260.0070.08020.73
5.5.250.0030.04020.59
5.5.240.0370.05720.29
5.4.450.0470.04019.52
5.4.440.0230.04319.41
5.4.430.0570.05019.57
5.4.420.0430.03719.48
5.4.410.0270.04719.44
5.4.400.0430.04019.23
5.4.390.0330.04718.86
5.4.380.0330.05018.83
5.4.370.0600.05718.71
5.4.360.0470.07018.83
5.4.350.0430.04318.89
5.4.340.0300.05718.73
5.4.320.0080.03412.51
5.4.310.0030.04212.50
5.4.300.0070.03612.51
5.4.290.0110.04112.50
5.4.280.0070.04612.40
5.4.270.0040.04112.40
5.4.260.0080.03612.39
5.4.250.0060.04012.39
5.4.240.0070.03612.40
5.4.230.0070.03612.39
5.4.220.0060.03612.39
5.4.210.0060.03512.39
5.4.200.0080.03712.39
5.4.190.0050.03612.39
5.4.180.0060.03512.39
5.4.170.0060.03612.39
5.4.160.0060.03512.39
5.4.150.0060.03512.39
5.4.140.0050.03712.07
5.4.130.0040.03612.06
5.4.120.0050.03712.02
5.4.110.0050.03612.02
5.4.100.0060.03512.01
5.4.90.0050.03812.01
5.4.80.0080.03612.01
5.4.70.0070.03212.01
5.4.60.0040.03512.01
5.4.50.0050.03512.01
5.4.40.0060.03312.00
5.4.30.0040.03612.00
5.4.20.0080.03111.99
5.4.10.0050.03411.99
5.4.00.0090.03311.48
5.3.290.0050.04012.80
5.3.280.0070.04012.71
5.3.270.0070.04312.72
5.3.260.0060.03912.72
5.3.250.0060.04612.72
5.3.240.0100.03412.72
5.3.230.0050.04112.71
5.3.220.0060.03712.68
5.3.210.0100.04412.68
5.3.200.0060.04112.68
5.3.190.0110.03812.68
5.3.180.0080.03612.68
5.3.170.0080.04012.67
5.3.160.0070.03712.67
5.3.150.0060.03912.67
5.3.140.0060.03712.66
5.3.130.0080.03712.66
5.3.120.0100.03912.66
5.3.110.0070.04612.65
5.3.100.0050.03812.12
5.3.90.0090.03812.10
5.3.80.0050.03712.09
5.3.70.0080.03812.09
5.3.60.0050.03712.08
5.3.50.0040.03812.02
5.3.40.0080.03312.02
5.3.30.0050.03811.98
5.3.20.0050.03911.77
5.3.10.0070.03711.73
5.3.00.0070.03411.72
5.2.170.0050.0339.22
5.2.160.0040.0309.22
5.2.150.0050.0329.21
5.2.140.0060.0299.21
5.2.130.0040.0299.17
5.2.120.0050.0289.18
5.2.110.0070.0279.18
5.2.100.0060.0329.17
5.2.90.0020.0329.17
5.2.80.0040.0389.17
5.2.70.0040.0359.17
5.2.60.0060.0349.13
5.2.50.0030.0319.09
5.2.40.0070.0339.07
5.2.30.0040.0359.05
5.2.20.0080.0259.04
5.2.10.0030.0328.94
5.2.00.0080.0268.80
5.1.60.0040.0258.09
5.1.50.0040.0268.09
5.1.40.0040.0278.07
5.1.30.0040.0268.41
5.1.20.0060.0248.44
5.1.10.0050.0258.16
5.1.00.0050.0248.16
5.0.50.0020.0226.64
5.0.40.0030.0196.50
5.0.30.0060.0356.31
5.0.20.0030.0216.28
5.0.10.0050.0306.25
5.0.00.0050.0316.25
4.4.90.0030.0194.78
4.4.80.0030.0214.76
4.4.70.0030.0164.75
4.4.60.0050.0184.75
4.4.50.0000.0184.77
4.4.40.0040.0294.71
4.4.30.0030.0154.76
4.4.20.0040.0144.84
4.4.10.0010.0174.85
4.4.00.0030.0244.76
4.3.110.0020.0164.67
4.3.100.0070.0204.66
4.3.90.0030.0194.63
4.3.80.0030.0264.59
4.3.70.0010.0224.63
4.3.60.0040.0174.62
4.3.50.0030.0154.63
4.3.40.0030.0234.54
4.3.30.0020.0203.30
4.3.20.0020.0193.28
4.3.10.0010.0173.24
4.3.00.0200.01715.63

preferences:
41.91 ms | 401 KiB | 5 Q