3v4l.org

run code in 300+ PHP versions simultaneously
<?php $all = array(array("class"=>array(array("peter","15","male"),array("mary","24","female"),array("jason","22","male")))); print_r($all); function merge($prev,$now){ return array_merge($prev,$now); } $cc = array_reduce($all,"merge",array()); print_r($cc);

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.40.0070.00718.48
8.3.30.0140.00319.02
8.3.20.0070.00020.13
8.3.10.0040.00423.46
8.3.00.0080.00019.25
8.2.170.0130.00622.96
8.2.160.0140.00020.52
8.2.150.0000.00824.18
8.2.140.0070.00024.66
8.2.130.0080.00026.16
8.2.120.0040.00420.85
8.2.110.0070.00421.03
8.2.100.0110.00017.72
8.2.90.0000.00819.25
8.2.80.0000.00817.97
8.2.70.0080.00017.50
8.2.60.0040.00417.92
8.2.50.0040.00418.10
8.2.40.0060.00319.65
8.2.30.0030.00617.99
8.2.20.0030.00617.54
8.2.10.0030.00618.05
8.2.00.0070.00017.58
8.1.270.0030.00523.83
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0090.00022.70
8.1.230.0070.00417.76
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0040.00417.13
8.1.190.0000.00817.10
8.1.180.0040.00418.10
8.1.170.0040.00418.59
8.1.160.0000.00721.93
8.1.150.0000.00718.75
8.1.140.0040.00417.25
8.1.130.0000.00717.82
8.1.120.0000.00717.39
8.1.110.0040.00417.45
8.1.100.0000.00717.29
8.1.90.0070.00017.30
8.1.80.0080.00017.34
8.1.70.0030.00317.29
8.1.60.0040.00417.55
8.1.50.0000.00817.50
8.1.40.0080.00017.42
8.1.30.0040.00417.48
8.1.20.0000.00717.51
8.1.10.0040.00417.44
8.1.00.0000.00717.27
8.0.300.0020.00518.77
8.0.290.0000.00816.75
8.0.280.0030.00318.45
8.0.270.0030.00317.20
8.0.260.0030.00317.18
8.0.250.0050.00216.91
8.0.240.0000.00716.85
8.0.230.0040.00416.74
8.0.220.0000.00816.71
8.0.210.0000.00716.75
8.0.200.0030.00316.89
8.0.190.0000.00816.88
8.0.180.0000.00816.85
8.0.170.0000.00916.74
8.0.160.0030.00316.81
8.0.150.0050.00216.68
8.0.140.0030.00516.77
8.0.130.0050.00013.20
8.0.120.0000.00716.82
8.0.110.0040.00416.79
8.0.100.0000.00716.66
8.0.90.0000.00716.76
8.0.80.0060.00916.74
8.0.70.0000.00816.86
8.0.60.0040.00416.64
8.0.50.0040.00416.70
8.0.30.0110.00817.05
8.0.20.0120.00817.40
8.0.10.0030.00316.82
8.0.00.0100.00716.79
7.4.330.0050.00015.00
7.4.320.0000.00616.52
7.4.300.0000.00616.33
7.4.290.0040.00416.38
7.4.280.0000.00816.39
7.4.270.0070.00016.42
7.4.260.0000.00716.55
7.4.250.0080.00016.37
7.4.240.0000.00716.43
7.4.230.0030.00316.51
7.4.220.0030.01416.52
7.4.210.0090.01016.50
7.4.200.0090.00016.63
7.4.160.0090.00616.38
7.4.150.0030.01417.40
7.4.140.0050.01217.86
7.4.130.0070.01116.37
7.4.120.0130.00316.36
7.4.110.0130.01016.37
7.4.100.0090.00916.34
7.4.90.0100.00716.32
7.4.80.0070.01919.39
7.4.70.0080.00916.30
7.4.60.0050.01216.50
7.4.50.0030.00616.39
7.4.40.0070.01316.29
7.4.30.0100.00616.29
7.4.00.0070.00714.74
7.3.330.0000.00613.16
7.3.320.0060.00012.88
7.3.310.0000.00716.27
7.3.300.0040.00416.21
7.3.290.0110.00716.13
7.3.280.0130.00416.16
7.3.270.0060.00917.40
7.3.260.0080.01216.37
7.3.250.0100.00616.30
7.3.240.0050.01116.19
7.3.230.0130.00316.39
7.3.210.0070.01016.23
7.3.200.0060.01019.39
7.3.190.0140.00716.18
7.3.180.0100.00616.19
7.3.170.0130.00316.27
7.3.160.0090.00816.52
7.3.120.0090.00914.75
7.3.110.0090.00914.34
7.3.100.0060.01014.39
7.3.90.0030.01614.59
7.3.80.0000.01514.61
7.3.70.0000.00814.65
7.3.60.0100.00014.61
7.3.50.0030.01014.79
7.3.40.0000.00814.41
7.3.30.0000.01414.46
7.3.20.0060.00616.29
7.3.10.0030.00616.39
7.3.00.0060.00616.55
7.2.330.0150.00416.68
7.2.320.0110.00616.60
7.2.310.0000.01716.52
7.2.300.0090.00716.27
7.2.290.0090.01216.38
7.2.250.0030.01615.13
7.2.240.0070.01415.05
7.2.230.0000.01815.09
7.2.220.0060.00314.84
7.2.210.0030.01015.06
7.2.200.0040.01114.99
7.2.190.0110.00414.78
7.2.180.0030.01014.98
7.2.170.0000.01314.90
7.2.60.0080.00316.60
7.1.330.0060.00915.61
7.1.320.0040.00815.63
7.1.310.0070.00715.82
7.1.300.0030.01015.31
7.1.290.0030.00615.54
7.1.280.0030.01015.55
7.1.270.0040.00715.69
7.1.260.0000.01115.71
7.1.200.0200.00815.26
7.1.70.0070.00717.00
7.1.60.0110.01419.40
7.1.50.0270.01034.43
7.1.00.0030.07722.57
7.0.200.0060.00316.40
7.0.140.0030.07721.96
7.0.60.0200.06719.96
7.0.50.0000.05317.85
7.0.40.0130.07720.11
7.0.30.0230.06720.09
7.0.20.0270.03320.06
7.0.10.0130.07320.16
7.0.00.0000.06720.09
5.6.280.0070.06721.14
5.6.210.0070.08720.57
5.6.200.0030.04718.22
5.6.190.0030.08720.55
5.6.180.0470.04720.61
5.6.170.0370.06020.46
5.6.160.0000.05020.71
5.6.150.0100.05018.16
5.6.140.0070.06018.24
5.6.130.0000.04718.14
5.6.120.0200.05721.10
5.6.110.0100.08321.11
5.6.100.0070.08020.96
5.6.90.0000.10721.07
5.6.80.0070.05720.48
5.5.350.0130.03320.47
5.5.340.0070.08018.09
5.5.330.0070.08720.33
5.5.320.0470.07020.24
5.5.310.0170.04720.28
5.5.300.0030.04018.08
5.5.290.0100.06017.96
5.5.280.0200.03320.98
5.5.270.0100.04720.86
5.5.260.0030.05320.87
5.5.250.0100.08320.77
5.5.240.0170.06320.29
5.4.450.0470.04019.52
5.4.440.0230.04719.53
5.4.430.0300.04319.56
5.4.420.0600.04719.33
5.4.410.1230.03319.18
5.4.400.0930.03019.17
5.4.390.1430.03719.15
5.4.380.0400.05018.78
5.4.370.0700.06318.79
5.4.360.0300.06318.71
5.4.350.0530.07318.71
5.4.340.0430.08018.47
5.4.320.0100.03412.50
5.4.310.0070.04612.50
5.4.300.0050.03812.51
5.4.290.0040.04012.50
5.4.280.0090.03812.40
5.4.270.0100.03312.40
5.4.260.0060.03912.40
5.4.250.0080.03812.40
5.4.240.0110.03212.40
5.4.230.0080.04212.39
5.4.220.0080.03712.39
5.4.210.0100.04112.39
5.4.200.0110.03412.39
5.4.190.0070.03612.38
5.4.180.0070.03612.39
5.4.170.0040.04412.39
5.4.160.0100.03312.39
5.4.150.0060.03612.39
5.4.140.0080.03712.07
5.4.130.0050.03812.06
5.4.120.0070.03512.02
5.4.110.0110.03112.01
5.4.100.0100.03212.01
5.4.90.0070.03612.01
5.4.80.0060.03812.01
5.4.70.0040.03812.01
5.4.60.0070.03612.01
5.4.50.0100.03312.01
5.4.40.0070.03412.00
5.4.30.0090.03411.99
5.4.20.0060.03711.99
5.4.10.0110.03111.99
5.4.00.0080.03911.48
5.3.290.0110.04312.80
5.3.280.0060.03912.71
5.3.270.0060.04012.72
5.3.260.0040.04312.72
5.3.250.0120.03712.72
5.3.240.0100.03612.71
5.3.230.0070.03912.71
5.3.220.0050.04112.68
5.3.210.0080.03912.68
5.3.200.0060.03912.68
5.3.190.0070.03812.68
5.3.180.0060.03712.67
5.3.170.0100.04712.67
5.3.160.0040.04112.67
5.3.150.0090.03612.67
5.3.140.0120.03112.66
5.3.130.0060.04012.66
5.3.120.0050.04012.66
5.3.110.0050.04112.65
5.3.100.0080.03612.12
5.3.90.0090.03612.10
5.3.80.0090.03312.09
5.3.70.0100.04112.09
5.3.60.0100.03412.07
5.3.50.0080.03712.02
5.3.40.0060.03812.02
5.3.30.0050.03611.98
5.3.20.0080.04211.76
5.3.10.0080.03711.72
5.3.00.0090.03411.72
5.2.170.0080.0359.21
5.2.160.0070.0359.21
5.2.150.0050.0419.21
5.2.140.0060.0319.21
5.2.130.0070.0339.17
5.2.120.0030.0389.18
5.2.110.0090.0349.18
5.2.100.0070.0299.17
5.2.90.0020.0319.17
5.2.80.0070.0289.17
5.2.70.0060.0329.17
5.2.60.0050.0399.13
5.2.50.0080.0339.10
5.2.40.0070.0359.07
5.2.30.0060.0309.05
5.2.20.0050.0309.04
5.2.10.0080.0318.94
5.2.00.0080.0308.80
5.1.60.0050.0288.09
5.1.50.0060.0288.08
5.1.40.0020.0288.06
5.1.30.0050.0278.41
5.1.20.0070.0268.44
5.1.10.0050.0278.16
5.1.00.0040.0288.16
5.0.50.0030.0256.64
5.0.40.0070.0216.50
5.0.30.0060.0356.31
5.0.20.0040.0276.28
5.0.10.0040.0276.25
5.0.00.0030.0386.25
4.4.90.0050.0214.78
4.4.80.0020.0164.75
4.4.70.0060.0174.75
4.4.60.0020.0254.75
4.4.50.0040.0164.77
4.4.40.0030.0264.70
4.4.30.0040.0194.76
4.4.20.0060.0214.84
4.4.10.0040.0174.85
4.4.00.0020.0264.76
4.3.110.0080.0164.67
4.3.100.0040.0164.66
4.3.90.0050.0154.63
4.3.80.0030.0254.58
4.3.70.0050.0134.63
4.3.60.0030.0174.63
4.3.50.0030.0164.63
4.3.40.0040.0234.54
4.3.30.0020.0273.30
4.3.20.0050.0183.28
4.3.10.0000.0203.24
4.3.00.0300.01715.64

preferences:
55.15 ms | 400 KiB | 5 Q