3v4l.org

run code in 300+ PHP versions simultaneously
<?php $estimate = array( array( 'gear' => 'MMG', 'total' => 315, 'efforts' => 9, 'afh' => 18 ), array( 'gear' => 'MMG', 'total' => 400, 'efforts' => 2, 'afh' => 6, ), array( 'gear' => 'BOO', 'total' => 200, 'efforts' => 20, 'afh' => 16, ), array( 'gear' => 'BOB', 'total' => 250, 'efforts' => 20, 'afh' => 16, ) ); $result = array_reduce($estimate, function($carry, $item) { if (!isset($carry[$item["gear"]])) { $carry[$item["gear"]] = $item; return $carry; } $carry[$item["gear"]]["total"] += $item["total"]; $carry[$item["gear"]]["efforts"] += $item["efforts"]; $carry[$item["gear"]]["afh"] += $item["afh"]; return $carry; }); print_r($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.130.0030.00618.46
8.3.120.0150.00321.03
8.3.110.0040.01120.94
8.3.100.0000.00824.06
8.3.90.0080.01126.77
8.3.80.0100.00018.56
8.3.70.0060.01016.75
8.3.60.0060.01018.21
8.3.50.0100.00817.53
8.3.40.0140.00318.99
8.3.30.0150.00018.84
8.3.20.0080.00019.23
8.3.10.0080.00020.86
8.3.00.0050.00317.93
8.2.250.0050.00318.45
8.2.240.0030.00618.98
8.2.230.0090.00622.58
8.2.220.0090.00037.54
8.2.210.0110.00426.77
8.2.200.0060.00316.75
8.2.190.0110.00416.58
8.2.180.0070.01416.50
8.2.170.0110.00422.96
8.2.160.0110.00419.05
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0040.00420.72
8.2.110.0030.00621.13
8.2.100.0120.00017.87
8.2.90.0050.00317.91
8.2.80.0040.00418.86
8.2.70.0080.00017.50
8.2.60.0040.00417.63
8.2.50.0080.00017.93
8.2.40.0090.00019.48
8.2.30.0040.00419.39
8.2.20.0040.00418.20
8.2.10.0070.00018.07
8.2.00.0000.00719.49
8.1.300.0120.00618.71
8.1.290.0030.00630.84
8.1.280.0100.01025.92
8.1.270.0120.00620.64
8.1.260.0100.00326.35
8.1.250.0000.00828.09
8.1.240.0050.00519.53
8.1.230.0120.00020.90
8.1.220.0070.00317.77
8.1.210.0050.00318.89
8.1.200.0000.01017.47
8.1.190.0040.00417.23
8.1.180.0030.00818.10
8.1.170.0040.00417.62
8.1.160.0080.00018.95
8.1.150.0070.00018.78
8.1.140.0040.00417.67
8.1.130.0000.00719.03
8.1.120.0070.00017.48
8.1.110.0050.00517.50
8.1.100.0040.00417.38
8.1.90.0030.00617.38
8.1.80.0000.00717.52
8.1.70.0000.00717.50
8.1.60.0040.00417.57
8.1.50.0080.00017.54
8.1.40.0110.00017.43
8.1.30.0030.00917.71
8.1.20.0040.00417.74
8.1.10.0080.00017.48
8.1.00.0030.00617.39
8.0.300.0040.00420.07
8.0.290.0070.00016.59
8.0.280.0030.00518.33
8.0.270.0000.00717.26
8.0.260.0030.00517.25
8.0.250.0000.00816.99
8.0.240.0030.00316.95
8.0.230.0050.00316.96
8.0.220.0000.00716.96
8.0.210.0000.00716.89
8.0.200.0030.00316.93
8.0.190.0090.00016.91
8.0.180.0040.00416.98
8.0.170.0000.00916.84
8.0.160.0030.00516.79
8.0.150.0000.00716.86
8.0.140.0030.00316.83
8.0.130.0050.00013.36
8.0.120.0040.00416.77
8.0.110.0050.00316.89
8.0.100.0040.00416.82
8.0.90.0040.00416.82
8.0.80.0110.00316.88
8.0.70.0000.00716.79
8.0.60.0040.00416.86
8.0.50.0050.00317.01
8.0.30.0110.01017.21
8.0.20.0120.01017.40
8.0.10.0070.00017.08
8.0.00.0090.00916.76
7.4.330.0000.00515.55
7.4.320.0060.00016.66
7.4.300.0080.00016.50
7.4.290.0030.00516.53
7.4.280.0000.00716.61
7.4.270.0070.00016.45
7.4.260.0040.00416.36
7.4.250.0040.00416.47
7.4.240.0030.00516.54
7.4.230.0000.00716.47
7.4.220.0000.00716.35
7.4.210.0090.00616.60
7.4.200.0040.00416.40
7.4.160.0110.00716.54
7.4.140.0100.00917.86
7.4.130.0100.01416.50
7.4.120.0080.01116.53
7.4.110.0100.00616.33
7.4.100.0110.00616.59
7.4.90.0120.00616.35
7.4.80.0100.00719.39
7.4.70.0060.01316.55
7.4.60.0070.01116.52
7.4.50.0150.00416.35
7.4.40.0100.01316.37
7.4.00.0070.00815.01
7.3.330.0000.00613.29
7.3.320.0060.00013.37
7.3.310.0000.00716.39
7.3.300.0030.00316.36
7.3.290.0000.00716.39
7.3.280.0080.00716.42
7.3.260.0120.00816.40
7.3.240.0100.00616.43
7.3.230.0090.01216.39
7.3.210.0110.01116.30
7.3.200.0070.01016.22
7.3.190.0090.00616.35
7.3.180.0130.00416.64
7.3.170.0060.01216.38
7.3.160.0090.00816.35
7.3.120.0060.01115.88
7.3.110.0050.01115.96
7.3.100.0100.00715.99
7.3.90.0030.01115.88
7.3.80.0080.00815.85
7.3.70.0090.00315.90
7.3.60.0110.00315.91
7.3.50.0030.01215.79
7.3.40.0100.00515.93
7.3.30.0040.00815.83
7.3.20.0080.00616.73
7.3.10.0090.00616.84
7.3.00.0100.00716.82
7.2.330.0030.01416.37
7.2.320.0140.00916.66
7.2.310.0110.01116.80
7.2.300.0130.00316.56
7.2.290.0110.01116.67
7.2.250.0070.01014.91
7.2.240.0100.00915.91
7.2.230.0040.01315.94
7.2.220.0060.00915.98
7.2.210.0050.00816.12
7.2.200.0090.00816.01
7.2.190.0080.00715.83
7.2.180.0020.01215.99
7.2.170.0050.00916.05
7.2.160.0070.01116.90
7.2.150.0070.01017.00
7.2.140.0130.00316.90
7.2.130.0080.00416.90
7.2.120.0040.01116.90
7.2.110.0110.00416.94
7.2.100.0070.00716.90
7.2.90.0070.01016.90
7.2.80.0040.01416.90
7.2.70.0080.01116.96
7.2.60.0130.00716.01
7.2.50.0160.00816.08
7.2.40.1020.00916.11
7.2.30.1490.00616.22
7.2.20.2030.01016.16
7.2.10.0080.01116.18
7.2.00.0090.01216.19
7.1.330.0060.00616.22
7.1.320.0090.00416.34
7.1.310.0030.01216.43
7.1.300.0090.00416.27
7.1.290.0020.01116.26
7.1.280.0150.00216.35
7.1.270.0050.01216.37
7.1.260.0070.00616.42
7.1.250.0000.01716.90
7.1.200.0060.00915.89
7.1.170.1900.00813.87
7.1.160.3040.01416.79
7.1.150.3760.01316.71
7.1.140.0280.01217.07
7.1.130.2680.01117.18
7.1.120.0160.01116.99
7.1.110.1970.01115.93
7.1.100.4130.01216.20
7.1.90.3260.01516.40
7.1.80.0210.01016.04
7.1.70.2790.01215.15
7.1.60.0790.01533.26
7.1.50.0280.01932.97
7.1.40.3660.01532.71
7.1.30.0350.01932.42
7.1.20.0380.01732.99
7.1.10.0100.01214.73
7.1.00.1240.01414.76

preferences:
27.88 ms | 403 KiB | 5 Q