3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = [ 1 => [ 1 => 4, 5 => 7 ], 2 => [ 1 => 2, 5 => 5 ], 3 => [ 1 => 2, 5 => 5 ], 4 => [ 1 => 6, 5 => 9 ], 5 => [ 1 => 6, 5 => 8 ] ]; $sum = array_reduce($arr, function($carry, $item){ $carry += $item[5]; return $carry; }); echo $sum;

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.0100.00716.75
8.3.60.0110.00416.63
8.3.50.0100.00822.05
8.3.40.0110.00418.64
8.3.30.0070.00718.76
8.3.20.0000.00720.29
8.3.10.0040.00421.73
8.3.00.0000.00821.75
8.2.190.0070.00716.63
8.2.180.0170.00318.41
8.2.170.0140.00022.96
8.2.160.0140.00319.32
8.2.150.0050.00324.18
8.2.140.0090.00024.66
8.2.130.0060.00326.16
8.2.120.0030.00619.95
8.2.110.0070.00322.26
8.2.100.0110.00017.78
8.2.90.0040.00417.63
8.2.80.0030.00618.78
8.2.70.0090.00017.75
8.2.60.0080.00017.63
8.2.50.0030.00717.79
8.2.40.0030.00618.05
8.2.30.0050.00318.05
8.2.20.0080.00018.18
8.2.10.0070.00018.05
8.2.00.0090.00018.31
8.1.280.0070.00725.92
8.1.270.0070.00023.81
8.1.260.0070.00026.35
8.1.250.0080.00028.09
8.1.240.0060.00321.02
8.1.230.0060.00620.88
8.1.220.0030.00618.64
8.1.210.0080.00418.77
8.1.200.0000.00917.35
8.1.190.0090.00017.13
8.1.180.0050.00318.10
8.1.170.0000.00817.62
8.1.160.0000.00718.80
8.1.150.0050.00220.14
8.1.140.0070.00019.58
8.1.130.0040.00419.07
8.1.120.0040.00417.36
8.1.110.0060.00317.52
8.1.100.0030.00517.37
8.1.90.0000.00917.43
8.1.80.0040.00417.35
8.1.70.0030.00317.48
8.1.60.0040.00417.53
8.1.50.0080.00017.41
8.1.40.0080.00017.53
8.1.30.0040.00417.50
8.1.20.0000.00717.49
8.1.10.0050.00517.60
8.1.00.0000.00817.39
8.0.300.0080.00018.77
8.0.290.0000.00916.63
8.0.280.0030.00318.51
8.0.270.0000.00717.20
8.0.260.0090.00017.18
8.0.250.0000.00716.83
8.0.240.0030.00716.83
8.0.230.0040.00416.94
8.0.220.0000.00616.84
8.0.210.0000.00716.81
8.0.200.0000.00617.00
8.0.190.0000.00716.94
8.0.180.0040.00416.93
8.0.170.0080.00016.92
8.0.160.0080.00016.86
8.0.150.0040.00416.75
8.0.140.0000.00716.85
8.0.130.0000.00713.32
8.0.120.0070.00016.73
8.0.110.0070.00016.80
8.0.100.0000.00716.79
8.0.90.0040.00416.88
8.0.80.0060.00916.93
8.0.70.0040.00416.71
8.0.60.0000.00816.84
8.0.50.0040.00416.88
8.0.30.0100.00916.95
8.0.20.0100.01017.40
8.0.10.0050.00216.84
8.0.00.0140.00416.73
7.4.330.0000.00515.55
7.4.320.0060.00016.52
7.4.300.0030.00316.51
7.4.290.0060.00316.50
7.4.280.0040.00816.64
7.4.270.0070.00016.54
7.4.260.0060.00316.62
7.4.250.0040.00416.61
7.4.240.0000.00716.50
7.4.230.0050.00216.68
7.4.220.0130.00316.52
7.4.210.0070.00916.66
7.4.200.0000.00816.47
7.4.160.0070.00916.53
7.4.150.0140.00417.40
7.4.140.0080.01217.86
7.4.130.0110.00716.51
7.4.120.0080.01016.55
7.4.110.0090.00916.63
7.4.100.0100.01016.72
7.4.90.0100.01416.49
7.4.80.0090.00619.39
7.4.70.0070.01116.59
7.4.60.0070.01016.57
7.4.50.0060.00616.68
7.4.40.0100.01016.62
7.4.30.0160.00616.45
7.4.00.0090.00615.12
7.3.330.0050.00013.14
7.3.320.0060.00013.44
7.3.310.0000.00716.21
7.3.300.0070.00016.32
7.3.290.0070.00816.35
7.3.280.0100.00916.30
7.3.270.0030.01317.40
7.3.260.0100.00916.44
7.3.250.0080.00916.49
7.3.240.0130.00816.53
7.3.230.0060.00916.39
7.3.210.0150.00316.57
7.3.200.0130.00316.69
7.3.190.0060.00916.37
7.3.180.0130.00316.41
7.3.170.0070.01016.43
7.3.160.0090.00616.67
7.2.330.0070.01016.73
7.2.320.0120.00916.86
7.2.310.0100.00616.61
7.2.300.0070.01116.43
7.2.290.0060.01716.74
7.2.60.0060.00916.86
7.2.50.0180.00716.96
7.1.200.0100.00315.86
7.1.70.0060.00317.12
7.1.60.0070.00717.08
7.1.30.0270.06736.41
7.1.20.3930.06036.36
7.1.10.0170.07320.33
7.1.00.4270.07320.67
7.0.200.0030.01316.69
7.0.170.0170.05720.16
7.0.160.5030.06320.08
7.0.150.0200.06320.04
7.0.140.0200.06720.18
7.0.130.0270.05720.01
7.0.120.0170.05320.04
7.0.110.2670.07019.99
7.0.100.0200.05320.14
7.0.90.0170.06720.12
7.0.80.3770.05320.12
7.0.70.0300.04720.01
7.0.60.0070.07719.99
7.0.50.0070.07020.19
7.0.40.3400.07319.99
7.0.30.0400.06020.07
7.0.20.3330.07020.12
7.0.10.3270.06720.11
7.0.00.2870.07720.22

preferences:
31.45 ms | 401 KiB | 5 Q