3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arrays = [ [ "a1" => true, "b1" => "abc", "c1" => "def" ], [ "a2" => true, "b2" => "fgh", "c2" => "ijk", "d2" => "lmn", "e2" => "opq" ] ]; $result = array_reduce($arrays, function ($carry, $item) { $carry += $item; return $carry; }, []); var_dump($result);

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.0170.00316.63
8.3.60.0060.01018.18
8.3.50.0070.00718.09
8.3.40.0170.00018.52
8.3.30.0090.00618.70
8.3.20.0000.00819.04
8.3.10.0080.00020.75
8.3.00.0030.00519.68
8.2.180.0130.00616.50
8.2.170.0090.00618.91
8.2.160.0110.00418.94
8.2.150.0080.00025.66
8.2.140.0000.00724.66
8.2.130.0040.00419.82
8.2.120.0050.00226.35
8.2.110.0160.00622.22
8.2.100.0090.00917.59
8.2.90.0040.00719.20
8.2.80.0040.00717.97
8.2.70.0040.00417.50
8.2.60.0000.00818.16
8.2.50.0040.00418.07
8.2.40.0000.00818.22
8.2.30.0040.00418.17
8.2.20.0080.00018.11
8.2.10.0080.00018.00
8.2.00.0000.00719.45
8.1.280.0130.00325.92
8.1.270.0080.00023.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0040.00422.07
8.1.230.0040.00718.99
8.1.220.0040.00417.80
8.1.210.0040.00418.77
8.1.200.0080.00417.35
8.1.190.0050.00317.23
8.1.180.0050.00318.10
8.1.170.0050.00218.96
8.1.160.0060.00318.88
8.1.150.0000.00718.81
8.1.140.0000.00717.61
8.1.130.0000.00719.00
8.1.120.0030.00617.45
8.1.110.0040.00417.36
8.1.100.0000.00817.49
8.1.90.0030.00717.48
8.1.80.0030.00617.51
8.1.70.0030.00517.44
8.1.60.0050.00317.57
8.1.50.0040.00717.48
8.1.40.0040.00417.53
8.1.30.0000.00717.57
8.1.20.0040.00417.54
8.1.10.0030.00517.34
8.1.00.0030.00617.35
8.0.300.0070.00018.77
8.0.290.0090.00016.75
8.0.280.0000.00718.25
8.0.270.0000.00716.87
8.0.260.0070.00018.88
8.0.250.0000.00716.87
8.0.240.0000.00816.85
8.0.230.0030.00316.96
8.0.220.0050.00316.93
8.0.210.0040.00416.87
8.0.200.0040.00417.06
8.0.190.0080.00016.99
8.0.180.0030.00516.88
8.0.170.0080.00016.86
8.0.160.0070.00017.01
8.0.150.0090.00316.78
8.0.140.0040.00416.92
8.0.130.0050.00013.34
8.0.120.0040.00416.97
8.0.110.0030.00716.77
8.0.100.0000.00716.85
8.0.90.0070.00016.93
8.0.80.0020.01616.84
8.0.70.0080.00016.90
8.0.60.0030.00516.82
8.0.50.0080.00016.96
8.0.30.0090.01017.19
8.0.20.0140.00517.40
8.0.10.0070.00016.85
8.0.00.0070.01116.73
7.4.330.0000.00415.55
7.4.320.0060.00016.68
7.4.300.0000.00716.64
7.4.290.0030.00316.50
7.4.280.0040.00416.63
7.4.270.0030.00316.41
7.4.260.0080.00016.47
7.4.250.0040.00416.35
7.4.240.0000.00716.59
7.4.230.0000.00716.48
7.4.220.0070.00016.41
7.4.210.0090.00616.58
7.4.200.0070.00016.34
7.4.160.0110.00516.51
7.4.140.0120.00717.86
7.4.130.0030.01416.45
7.4.120.0100.00916.52
7.4.110.0030.01316.61
7.4.100.0030.02016.48
7.4.90.0110.01116.70
7.4.80.0070.00719.39
7.4.70.0140.00316.49
7.4.60.0090.00916.45
7.4.50.0060.00916.43
7.4.40.0100.00716.29
7.4.00.0100.00714.70
7.3.330.0050.00013.25
7.3.320.0030.00313.15
7.3.310.0060.00016.34
7.3.300.0030.00316.30
7.3.290.0000.00616.18
7.3.280.0070.00716.29
7.3.260.0110.00616.48
7.3.240.0080.00816.36
7.3.230.0070.01416.25
7.3.210.0100.01016.29
7.3.200.0120.00916.48
7.3.190.0100.00716.23
7.3.180.0110.00716.33
7.3.170.0100.00616.30
7.3.160.0100.00716.34
7.3.00.0030.01016.77
7.2.330.0170.00316.72
7.2.320.0000.01716.43
7.2.310.0060.01216.75
7.2.300.0090.01316.65
7.2.290.0100.00916.71
7.2.130.0000.01317.01
7.2.120.0070.00717.05
7.2.110.0100.00716.79
7.2.100.0060.00616.67
7.2.90.0040.01116.64
7.2.80.0030.00917.01
7.2.70.0040.01117.10
7.2.60.1810.01215.58
7.2.50.0150.00715.60
7.2.40.1090.01315.98
7.2.30.0740.01115.82
7.2.20.0700.00715.62
7.2.10.0880.00815.67
7.2.00.0180.00815.82
7.1.250.0070.00415.93
7.1.240.0110.00015.47
7.1.230.0070.00715.74
7.1.220.0060.00915.79
7.1.210.0100.00015.74
7.1.200.0050.00815.75
7.1.190.0030.00715.55
7.1.180.0000.01315.80
7.1.170.0110.00814.35
7.1.160.0850.01316.28
7.1.150.0850.01016.36
7.1.140.0810.01016.39
7.1.130.0120.00916.51
7.1.120.0110.01216.46
7.1.110.0590.00716.09
7.1.100.0850.01015.92
7.1.90.0800.01216.08
7.1.80.0930.00916.07
7.1.70.1090.01315.51
7.1.60.0800.01327.39
7.1.50.0680.01327.18
7.1.40.0660.01227.00
7.1.30.0750.01526.96
7.1.20.2060.01427.12
7.1.10.0840.00915.10
7.1.00.0480.00815.09
7.0.330.0070.00315.22
5.6.380.0030.01314.19

preferences:
59.65 ms | 401 KiB | 5 Q