3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [0.25, 0.1667, 0.1667, 0.1667, 0.125, 0.125] ; $res = array_reduce($array, function($carry, $item) { $carry[] = $item + end($carry); return $carry; }, []); print_r($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.0040.01118.30
8.3.50.0120.00318.13
8.3.40.0090.00918.79
8.3.30.0110.00318.85
8.3.20.0040.00420.82
8.3.10.0000.00823.53
8.3.00.0080.00020.69
8.2.180.0100.01018.41
8.2.170.0100.01022.96
8.2.160.0070.00722.30
8.2.150.0030.00524.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0000.00726.16
8.2.110.0070.00322.29
8.2.100.0000.01118.03
8.2.90.0030.00517.97
8.2.80.0000.00818.16
8.2.70.0070.00317.93
8.2.60.0090.00018.02
8.2.50.0040.00418.10
8.2.40.0040.00420.47
8.2.30.0000.00819.19
8.2.20.0000.00718.18
8.2.10.0080.00019.07
8.2.00.0040.00419.30
8.1.280.0120.00325.92
8.1.270.0050.00322.53
8.1.260.0080.00026.35
8.1.250.0030.00628.09
8.1.240.0080.00020.52
8.1.230.0060.00620.91
8.1.220.0040.00421.02
8.1.210.0090.00018.77
8.1.200.0030.00617.48
8.1.190.0050.00317.23
8.1.180.0050.00318.10
8.1.170.0060.00318.64
8.1.160.0000.00820.27
8.1.150.0000.00718.88
8.1.140.0000.00718.81
8.1.130.0030.00320.05
8.1.120.0030.00617.50
8.1.110.0000.00817.51
8.1.100.0000.00717.35
8.1.90.0040.00417.35
8.1.80.0000.00917.46
8.1.70.0030.00317.43
8.1.60.0080.00017.54
8.1.50.0000.00717.50
8.1.40.0040.00417.53
8.1.30.0000.00817.51
8.1.20.0000.00817.64
8.1.10.0040.00417.50
8.1.00.0040.00417.41
8.0.300.0070.00019.77
8.0.290.0000.00716.63
8.0.280.0000.00718.26
8.0.270.0000.00817.39
8.0.260.0060.00020.04
8.0.250.0000.00617.01
8.0.240.0030.00316.96
8.0.230.0000.00816.97
8.0.220.0070.00016.86
8.0.210.0000.00716.77
8.0.200.0030.00316.98
8.0.190.0050.00317.05
8.0.180.0040.00417.02
8.0.170.0080.00016.90
8.0.160.0000.00716.95
8.0.150.0000.00816.97
8.0.140.0000.00816.95
8.0.130.0000.00513.39
8.0.120.0040.00416.89
8.0.110.0080.00016.75
8.0.100.0080.00016.84
8.0.90.0060.00316.98
8.0.80.0090.01316.96
8.0.70.0040.00417.00
8.0.60.0070.00016.84
8.0.50.0030.00417.02
8.0.30.0110.00617.18
8.0.20.0150.00417.11
8.0.10.0000.00716.90
8.0.00.0120.00616.72
7.4.330.0000.00515.55
7.4.320.0000.00716.52
7.4.300.0000.00616.61
7.4.290.0040.00416.40
7.4.280.0040.00416.51
7.4.270.0070.00016.40
7.4.260.0000.00513.34
7.4.250.0030.00316.45
7.4.240.0030.00416.59
7.4.230.0050.00216.50
7.4.220.0050.00216.60
7.4.210.0090.00916.55
7.4.200.0030.00316.63
7.4.130.0130.01016.61
7.4.120.0070.02016.47
7.4.110.0140.00716.63
7.4.100.0150.00616.50
7.4.90.0150.00316.43
7.4.80.0060.01219.39
7.4.70.0170.00016.39
7.4.60.0100.00616.34
7.4.50.0100.00716.49
7.4.40.0070.01416.28
7.4.00.0030.01314.71
7.3.330.0000.00716.17
7.3.320.0000.00613.30
7.3.310.0030.00316.13
7.3.300.0070.00016.32
7.3.290.0000.00716.36
7.3.260.0120.00616.45
7.3.230.0100.01316.24
7.3.210.0080.00816.23
7.3.200.0030.01316.31
7.3.190.0080.00816.31
7.3.180.0170.00016.60
7.3.170.0150.00916.34
7.3.160.0120.00816.26
7.3.110.0110.00714.89
7.3.100.0170.00314.55
7.3.90.0070.00714.74
7.3.80.0110.00714.80
7.3.70.0070.00914.70
7.3.60.0030.01514.71
7.3.50.0200.00014.69
7.3.40.0080.00814.52
7.3.30.0140.00614.60
7.3.20.0080.01114.98
7.3.10.0130.00614.68
7.3.00.0100.00614.48
7.2.330.0110.00716.65
7.2.320.0100.01316.49
7.2.310.0060.01616.41
7.2.300.0060.01316.52
7.2.290.0130.00916.66
7.2.240.0150.00414.78
7.2.230.0130.00715.14
7.2.220.0080.00914.93
7.2.210.0100.01014.90
7.2.200.0030.01214.91
7.2.190.0110.00615.02
7.2.180.0160.00415.00
7.2.170.0040.01414.98
7.2.160.0100.01114.88
7.2.150.0110.00915.02
7.2.140.0060.01214.96
7.2.130.0030.02015.07
7.2.120.0060.01314.90
7.2.110.0090.01015.01
7.2.100.0090.00615.13
7.2.90.0090.01215.01
7.2.80.0150.00414.94
7.2.70.0130.00614.75
7.2.60.0090.01114.86
7.2.50.0100.01015.07
7.2.40.0180.00314.84
7.2.30.0140.00915.23
7.2.20.0290.00314.90
7.2.10.0120.00615.00
7.2.00.0210.00014.95
7.1.330.0120.00813.73
7.1.320.0150.00713.83
7.1.310.0000.01713.72
7.1.300.0060.01014.08
7.1.290.0110.00413.92
7.1.280.0090.00913.94
7.1.270.0100.01013.95
7.1.260.0130.00713.98
7.1.250.0110.00613.95

preferences:
72.67 ms | 400 KiB | 5 Q