3v4l.org

run code in 300+ PHP versions simultaneously
<?php $counter = function ($carry, array $item) { return $carry + count($item); }; $recommendations = [ [1],[2],[3] ]; $res = array_reduce($recommendations, $counter, 0); 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.0170.00316.25
8.3.50.0120.00721.13
8.3.40.0040.01118.48
8.3.30.0000.01418.49
8.3.20.0080.00018.43
8.3.10.0000.00821.95
8.3.00.0040.00421.90
8.2.180.0090.00616.50
8.2.170.0070.00722.96
8.2.160.0030.01022.27
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0060.00319.64
8.2.120.0040.00426.35
8.2.110.0030.00720.90
8.2.100.0120.00317.89
8.2.90.0030.00519.22
8.2.80.0030.00517.97
8.2.70.0050.00517.63
8.2.60.0080.00017.93
8.2.50.0040.00418.10
8.2.40.0030.00620.38
8.2.30.0000.00719.24
8.2.20.0000.00718.06
8.2.10.0030.00618.12
8.2.00.0080.00017.72
8.1.280.0100.01025.92
8.1.270.0030.00522.20
8.1.260.0040.00428.09
8.1.250.0070.00028.09
8.1.240.0090.00021.06
8.1.230.0080.00322.08
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0030.00617.23
8.1.190.0050.00317.35
8.1.180.0040.00418.10
8.1.170.0030.00518.63
8.1.160.0000.00819.02
8.1.150.0040.00422.00
8.1.140.0000.00719.51
8.1.130.0080.00017.70
8.1.120.0000.00717.43
8.1.110.0080.00017.48
8.1.100.0030.00517.49
8.1.90.0070.00017.36
8.1.80.0050.00317.45
8.1.70.0040.00417.36
8.1.60.0040.00417.54
8.1.50.0030.00517.41
8.1.40.0000.00817.54
8.1.30.0030.00517.68
8.1.20.0040.00417.66
8.1.10.0040.00417.48
8.1.00.0040.00417.22
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0030.00318.43
8.0.270.0000.00717.10
8.0.260.0030.00317.11
8.0.250.0000.00716.88
8.0.240.0030.00316.93
8.0.230.0030.00616.92
8.0.220.0030.00316.71
8.0.210.0000.00716.84
8.0.200.0070.00016.98
8.0.190.0000.00716.96
8.0.180.0000.00716.80
8.0.170.0050.00316.77
8.0.160.0070.00016.97
8.0.150.0070.00016.78
8.0.140.0040.00416.84
8.0.130.0050.00013.25
8.0.120.0030.00516.89
8.0.110.0000.00816.91
8.0.100.0040.00416.83
8.0.90.0000.00716.77
8.0.80.0110.00916.90
8.0.70.0040.00316.73
8.0.60.0040.00416.78
8.0.50.0040.00416.72
8.0.30.0100.01217.02
8.0.20.0110.00917.40
8.0.10.0040.00416.89
8.0.00.0120.00616.70
7.4.330.0050.00015.55
7.4.320.0000.00616.42
7.4.300.0030.00316.50
7.4.290.0070.00016.54
7.4.280.0050.00216.46
7.4.270.0030.00316.55
7.4.260.0070.00016.58
7.4.250.0030.00516.45
7.4.240.0070.00016.68
7.4.230.0030.00316.40
7.4.220.0100.01016.48
7.4.210.0140.00716.55
7.4.200.0000.00816.39
7.4.160.0110.00816.33
7.4.150.0120.00617.40
7.4.140.0130.00617.86
7.4.130.0120.00516.37
7.4.120.0060.01016.50
7.4.110.0130.00316.37
7.4.100.0130.00416.51
7.4.90.0130.01316.29
7.4.80.0060.01119.39
7.4.70.0100.00716.50
7.4.60.0080.00816.45
7.4.50.0060.00916.35
7.4.40.0100.00616.26
7.4.30.0180.00016.34
7.4.00.0000.01615.14
7.3.330.0030.00313.12
7.3.320.0020.00213.07
7.3.310.0080.00016.31
7.3.300.0070.00016.15
7.3.290.0110.00316.28
7.3.280.0100.01016.30
7.3.270.0090.00817.40
7.3.260.0140.00816.46
7.3.250.0120.00516.49
7.3.240.0080.01116.28
7.3.230.0060.01616.39
7.3.210.0030.01316.28
7.3.200.0100.00716.44
7.3.190.0100.00616.50
7.3.180.0060.01116.54
7.3.170.0060.01016.42
7.3.160.0100.00616.39
7.2.330.0100.00716.47
7.2.320.0100.01316.70
7.2.310.0130.00316.73
7.2.300.0120.00916.64
7.2.290.0130.00316.44
7.2.00.0030.00919.14
7.1.70.0030.00717.23
7.1.60.0030.01017.20
7.1.00.0070.07322.35
7.0.200.0190.00616.37
7.0.120.0070.05722.13
7.0.110.0070.07322.07
7.0.100.0070.06722.18
7.0.90.0100.06322.11
7.0.80.0130.06022.14
7.0.70.0170.06722.11
7.0.60.0070.06721.99
7.0.50.0130.05722.16
7.0.40.0170.05021.98
7.0.30.0230.06722.11
7.0.20.0130.07021.98
7.0.10.0170.07322.20
7.0.00.0330.06022.06
5.6.270.0070.05320.88
5.6.260.0000.06321.09
5.6.250.0200.06021.06
5.6.240.0130.07320.86
5.6.230.0170.05721.06
5.6.220.0070.08720.86
5.6.210.0170.05020.95
5.6.200.0130.05020.75
5.6.190.0100.05721.01
5.6.180.0270.06321.05
5.6.170.0130.06020.93
5.6.160.0130.08020.93
5.6.150.0070.07020.88
5.6.140.0100.07720.80
5.6.130.0070.08720.75
5.6.120.0300.06720.84
5.6.110.0100.07320.75
5.6.100.0130.07020.91
5.6.90.0070.06721.02
5.6.80.0130.05320.32
5.6.70.0100.06020.23
5.6.60.0130.06020.38
5.6.50.0100.05720.38
5.6.40.0100.06020.43
5.6.30.0130.05320.43
5.6.20.0200.05020.21
5.6.10.0200.05720.11
5.6.00.0230.06720.44

preferences:
32.35 ms | 401 KiB | 5 Q