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"); print_r($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.0070.01018.43
8.3.50.0100.00822.85
8.3.40.0160.00619.02
8.3.30.0040.01119.14
8.3.20.0040.00420.21
8.3.10.0080.00023.52
8.3.00.0080.00019.38
8.2.180.0160.00616.36
8.2.170.0100.01022.96
8.2.160.0140.00320.57
8.2.150.0120.00324.18
8.2.140.0060.00324.66
8.2.130.0080.00026.16
8.2.120.0060.00321.01
8.2.110.0060.00321.06
8.2.100.0040.00817.91
8.2.90.0060.00317.84
8.2.80.0000.00817.97
8.2.70.0100.00017.38
8.2.60.0050.00317.75
8.2.50.0000.00817.63
8.2.40.0000.00817.75
8.2.30.0030.00517.88
8.2.20.0050.00317.78
8.2.10.0000.00718.00
8.2.00.0040.00417.75
8.1.280.0130.00725.92
8.1.270.0040.00422.03
8.1.260.0070.00026.35
8.1.250.0000.00728.09
8.1.240.0000.00919.31
8.1.230.0040.00720.91
8.1.220.0030.00617.74
8.1.210.0030.00620.07
8.1.200.0030.00617.35
8.1.190.0050.00317.23
8.1.180.0080.00018.10
8.1.170.0080.00017.62
8.1.160.0040.00421.97
8.1.150.0000.00718.84
8.1.140.0000.00717.32
8.1.130.0070.00017.76
8.1.120.0000.00717.46
8.1.110.0000.00717.40
8.1.100.0040.00417.48
8.1.90.0000.00717.46
8.1.80.0000.00717.38
8.1.70.0060.00317.24
8.1.60.0000.00817.54
8.1.50.0040.00417.61
8.1.40.0000.00817.48
8.1.30.0030.00617.66
8.1.20.0030.00617.63
8.1.10.0020.00517.54
8.1.00.0000.00817.57
8.0.300.0040.00419.90
8.0.290.0000.00716.63
8.0.280.0030.00318.40
8.0.270.0030.00317.21
8.0.260.0030.00317.23
8.0.250.0030.00316.98
8.0.240.0000.00716.98
8.0.230.0040.00416.99
8.0.220.0070.00016.88
8.0.210.0030.00416.80
8.0.200.0030.00316.88
8.0.190.0040.00416.93
8.0.180.0040.00416.95
8.0.170.0080.00016.94
8.0.160.0000.00716.89
8.0.150.0000.00716.84
8.0.140.0040.00416.73
8.0.130.0030.00313.38
8.0.120.0040.00416.88
8.0.110.0040.00416.95
8.0.100.0040.00416.87
8.0.90.0050.00216.85
8.0.80.0060.01016.86
8.0.70.0050.00316.81
8.0.60.0040.00416.89
8.0.50.0070.00016.93
8.0.30.0190.00517.13
8.0.20.0090.01317.40
8.0.10.0080.00016.84
8.0.00.0070.01316.71
7.4.330.0050.00015.03
7.4.320.0030.00316.54
7.4.300.0040.00416.53
7.4.290.0040.00416.49
7.4.280.0000.00816.47
7.4.270.0000.00616.40
7.4.260.0080.00016.34
7.4.250.0070.00016.45
7.4.240.0040.00416.49
7.4.230.0000.00716.62
7.4.220.0130.00916.39
7.4.210.0030.01216.41
7.4.200.0040.00416.33
7.4.160.0090.00916.51
7.4.150.0060.01217.40
7.4.140.0130.00817.86
7.4.130.0070.01016.51
7.4.120.0110.00916.29
7.4.110.0080.01516.45
7.4.100.0040.02016.56
7.4.90.0070.01116.33
7.4.80.0090.00919.39
7.4.70.0060.01116.54
7.4.60.0060.01016.62
7.4.50.0000.00816.09
7.4.40.0090.00916.26
7.4.30.0110.00416.50
7.4.00.0170.00014.82
7.3.330.0000.00513.38
7.3.320.0060.00013.32
7.3.310.0030.00316.45
7.3.300.0000.00716.20
7.3.290.0090.00616.31
7.3.280.0070.00916.30
7.3.270.0080.01117.40
7.3.260.0100.00916.35
7.3.250.0110.00516.27
7.3.240.0110.01116.17
7.3.230.0130.00316.39
7.3.210.0100.01416.62
7.3.200.0100.01019.39
7.3.190.0120.00916.24
7.3.180.0130.00316.38
7.3.170.0130.00616.45
7.3.160.0060.00916.46
7.3.120.0100.00614.49
7.3.110.0030.01014.85
7.3.100.0090.00614.52
7.3.90.0040.00814.71
7.3.80.0120.00314.52
7.3.70.0040.00814.58
7.3.60.0040.00814.76
7.3.50.0040.01114.75
7.3.40.0040.00714.79
7.3.30.0100.00314.54
7.3.20.0030.01316.38
7.3.10.0030.00616.35
7.3.00.0030.00816.58
7.2.330.0200.00616.76
7.2.320.0040.01416.27
7.2.310.0110.00716.74
7.2.300.0080.01416.65
7.2.290.0090.00916.59
7.2.240.0100.00314.69
7.2.230.0030.00614.86
7.2.220.0090.00614.91
7.2.210.0000.01414.73
7.2.200.0030.01015.12
7.2.190.0060.01014.87
7.2.180.0090.00614.73
7.2.170.0030.01014.97
7.2.160.0090.00614.95
7.2.150.0080.00416.94
7.2.140.0070.00716.71
7.2.130.0030.00616.79
7.2.120.0110.00016.87
7.2.110.0030.00616.75
7.2.100.0090.00616.54
7.2.90.0030.01416.90
7.2.80.0050.00516.63
7.2.70.0040.00716.84
7.2.60.0000.01416.77
7.2.50.0040.00816.77
7.2.40.0030.01416.79
7.2.30.0080.00816.78
7.2.20.0070.00416.78
7.2.10.0110.00716.78
7.2.00.0080.00518.02
7.1.330.0040.00415.64
7.1.320.0040.00715.59
7.1.310.0040.01115.77
7.1.300.0000.01315.76
7.1.290.0070.00015.80
7.1.280.0030.00715.79
7.1.270.0030.00715.74
7.1.260.0070.00715.90
7.1.250.0080.00715.91
7.1.100.0040.00718.18
7.1.70.0040.00716.87
7.1.60.0030.02019.40
7.1.50.0110.01416.87
7.1.00.0000.08022.31
7.0.200.0040.00416.71
7.0.140.0030.07322.01
7.0.60.0070.08319.94
7.0.50.0130.08017.85
7.0.40.0070.08720.13
7.0.30.0300.05320.02
7.0.20.0300.08020.15
7.0.10.0130.08020.24
7.0.00.0030.06020.11
5.6.210.0100.07720.73
5.6.200.0100.07718.16
5.6.190.0070.04720.48
5.6.180.0270.05020.60
5.6.170.0170.04720.39
5.6.160.0130.07720.54
5.6.150.0100.05318.13
5.6.140.0130.07018.16
5.6.130.0030.08018.15
5.6.120.0200.07021.12
5.6.110.0170.08021.04
5.6.100.0030.05320.98
5.6.90.0000.04721.01
5.6.80.0070.07320.47
5.5.350.0200.06320.32
5.5.340.0100.07317.95
5.5.330.0030.08320.35
5.5.320.0370.06720.42
5.5.310.0170.04720.41
5.5.300.0100.06318.07
5.5.290.0100.03317.98
5.5.280.0130.06320.97
5.5.270.0070.04020.87
5.5.260.0070.03720.94
5.5.250.0170.03320.79
5.5.240.0030.07320.15
5.4.450.0430.04719.51
5.4.440.0570.04019.32
5.4.430.0370.03719.27
5.4.420.0370.05019.20
5.4.410.0700.04319.14
5.4.400.0270.04019.09
5.4.390.0470.04319.20
5.4.380.0400.05018.78
5.4.370.0370.05018.76
5.4.360.0400.05718.50
5.4.350.0370.06318.76
5.4.340.0370.05018.74
5.4.320.0050.04112.51
5.4.310.0030.04012.50
5.4.300.0040.03912.50
5.4.290.0080.03512.50
5.4.280.0070.03412.40
5.4.270.0040.03812.39
5.4.260.0060.03712.40
5.4.250.0080.03912.40
5.4.240.0080.04212.39
5.4.230.0040.03912.39
5.4.220.0040.03712.39
5.4.210.0070.03312.39
5.4.200.0040.03912.39
5.4.190.0040.03712.38
5.4.180.0020.03912.38
5.4.170.0070.03512.39
5.4.160.0050.03712.38
5.4.150.0050.03712.39
5.4.140.0050.03812.07
5.4.130.0050.03612.06
5.4.120.0050.03712.02
5.4.110.0070.03812.01
5.4.100.0050.03612.01
5.4.90.0070.03812.01
5.4.80.0050.04012.02
5.4.70.0090.03312.01
5.4.60.0050.03512.01
5.4.50.0070.03312.01
5.4.40.0030.03712.00
5.4.30.0050.03711.99
5.4.20.0110.03111.99
5.4.10.0070.03711.99
5.4.00.0070.03611.48
5.3.290.0090.03612.80
5.3.280.0040.04012.71
5.3.270.0060.04512.72
5.3.260.0090.03812.72
5.3.250.0060.03712.72
5.3.240.0060.03812.72
5.3.230.0030.04112.71
5.3.220.0010.04012.68
5.3.210.0060.03812.68
5.3.200.0080.03712.68
5.3.190.0060.03812.68
5.3.180.0070.03612.68
5.3.170.0030.03812.67
5.3.160.0080.03412.67
5.3.150.0070.03412.67
5.3.140.0050.03912.66
5.3.130.0090.03512.66
5.3.120.0040.03912.66
5.3.110.0070.04112.66
5.3.100.0060.03812.12
5.3.90.0030.03912.09
5.3.80.0090.03612.09
5.3.70.0060.04512.09
5.3.60.0060.04212.08
5.3.50.0130.03112.02
5.3.40.0090.03912.02
5.3.30.0020.04311.98
5.3.20.0070.03811.77
5.3.10.0040.03511.73
5.3.00.0060.04311.71
5.2.170.0050.0299.22
5.2.160.0070.0319.21
5.2.150.0050.0329.22
5.2.140.0050.0329.21
5.2.130.0020.0309.18
5.2.120.0030.0299.17
5.2.110.0060.0329.18
5.2.100.0030.0319.18
5.2.90.0030.0299.18
5.2.80.0040.0309.17
5.2.70.0030.0339.17
5.2.60.0050.0309.13
5.2.50.0030.0319.09
5.2.40.0040.0319.07
5.2.30.0040.0379.04
5.2.20.0050.0319.04
5.2.10.0020.0318.94
5.2.00.0030.0298.80
5.1.60.0030.0248.09
5.1.50.0030.0258.09
5.1.40.0060.0238.06
5.1.30.0080.0218.41
5.1.20.0060.0328.44
5.1.10.0050.0248.16
5.1.00.0040.0278.16
5.0.50.0040.0216.64
5.0.40.0030.0236.50
5.0.30.0010.0346.31
5.0.20.0030.0236.27
5.0.10.0060.0206.26
5.0.00.0070.0296.25
4.4.90.0020.0224.78
4.4.80.0010.0174.75
4.4.70.0030.0234.75
4.4.60.0050.0174.75
4.4.50.0020.0164.77
4.4.40.0040.0234.71
4.4.30.0040.0174.76
4.4.20.0030.0194.84
4.4.10.0010.0184.85
4.4.00.0030.0334.76
4.3.110.0030.0174.66
4.3.100.0020.0154.66
4.3.90.0030.0134.64
4.3.80.0030.0224.58
4.3.70.0030.0184.63
4.3.60.0040.0134.63
4.3.50.0040.0144.63
4.3.40.0030.0254.54
4.3.30.0010.0223.30
4.3.20.0020.0193.28
4.3.10.0030.0153.24
4.3.00.0070.01315.63

preferences:
48.67 ms | 400 KiB | 5 Q