3v4l.org

run code in 500+ PHP versions simultaneously
<?php $arr = [1,2,3]; $reduced = array_reduce($arr, function (&$result, $items) { }, []);

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.5.60.0030.01016.90
8.5.30.0120.00617.46
8.5.20.0090.00720.30
8.5.10.0080.00916.71
8.5.00.0120.00920.19
8.4.180.0150.00722.43
8.4.170.0120.01023.93
8.4.160.0100.00523.63
8.4.150.0070.00516.89
8.4.140.0160.00517.54
8.4.130.0120.00817.80
8.4.120.0040.00520.50
8.4.110.0020.00722.35
8.4.100.0090.00817.79
8.4.90.0120.00618.29
8.4.80.0140.00719.59
8.4.70.0120.00817.69
8.4.60.0120.00819.10
8.4.50.0140.00718.86
8.4.40.0100.01017.90
8.4.30.0160.00320.52
8.4.20.0100.01024.27
8.4.10.0040.01519.45
8.3.300.0120.00918.47
8.3.290.0120.01120.75
8.3.280.0140.00518.50
8.3.270.0090.01116.65
8.3.260.0080.01116.72
8.3.250.0120.00718.63
8.3.240.0090.01016.67
8.3.230.0080.00816.73
8.3.220.0080.01119.07
8.3.210.0130.00616.85
8.3.200.0070.00916.56
8.3.190.0100.00919.01
8.3.180.0140.00616.70
8.3.170.0060.01217.31
8.3.160.0040.00417.34
8.3.150.0150.00616.78
8.3.140.0070.01016.61
8.3.130.0040.00416.61
8.3.120.0060.00318.82
8.3.110.0030.00520.94
8.3.100.0040.00424.06
8.3.90.0050.00326.77
8.3.80.0030.00616.88
8.3.70.0110.00416.88
8.3.60.0060.01218.68
8.3.50.0110.00823.66
8.3.40.0070.01422.21
8.3.30.0140.00018.55
8.3.20.0040.00424.18
8.3.10.0060.00324.66
8.3.00.0070.00026.16
8.2.300.0150.00618.23
8.2.290.0050.00420.21
8.2.280.0100.00816.62
8.2.270.0090.00918.28
8.2.260.0120.00316.93
8.2.250.0070.01416.68
8.2.240.0070.00318.86
8.2.230.0090.00022.58
8.2.220.0040.00437.54
8.2.210.0040.00426.77
8.2.200.0040.00416.63
8.2.190.0120.00916.63
8.2.180.0040.01225.92
8.2.170.0040.01118.79
8.2.160.0070.00722.96
8.2.150.0040.00425.66
8.2.140.0050.00224.66
8.2.130.0040.00426.16
8.2.120.0000.00726.35
8.2.110.0030.00622.25
8.2.100.0040.00817.91
8.2.90.0040.00417.63
8.2.80.0030.00618.73
8.2.70.0060.00317.68
8.2.60.0040.00418.09
8.2.50.0060.00318.10
8.2.40.0060.00319.48
8.2.30.0050.00319.15
8.2.20.0080.00018.09
8.2.10.0000.00819.37
8.2.00.0000.00719.22
8.1.340.0130.00917.63
8.1.330.0070.01222.18
8.1.320.0110.00816.07
8.1.310.0070.00416.52
8.1.300.0060.00316.27
8.1.290.0090.00018.88
8.1.280.0070.00725.92
8.1.270.0070.00023.99
8.1.260.0070.00028.09
8.1.250.0070.00028.09
8.1.240.0090.00022.07
8.1.230.0070.00417.64
8.1.220.0000.00817.79
8.1.210.0040.00418.77
8.1.200.0090.00017.13
8.1.190.0030.00517.35
8.1.180.0050.00518.10
8.1.170.0030.00518.63
8.1.160.0030.00319.01
8.1.150.0040.00318.85
8.1.140.0080.00018.93
8.1.130.0030.00317.43
8.1.120.0030.00317.36
8.1.110.0000.00817.48
8.1.100.0040.00417.32
8.1.90.0000.00717.45
8.1.80.0080.00017.49
8.1.70.0000.00917.41
8.1.60.0090.00017.63
8.1.50.0060.00317.50
8.1.40.0070.00217.46
8.1.30.0110.00617.62
8.1.20.0080.00917.54
8.1.10.0130.00517.38
8.1.00.0110.00717.32
8.0.300.0070.00020.09
8.0.290.0000.00816.75
8.0.280.0070.00018.37
8.0.270.0050.00216.75
8.0.260.0040.00416.74
8.0.250.0030.00316.98
8.0.240.0030.00316.82
8.0.230.0030.00516.97
8.0.220.0000.00716.76
8.0.210.0000.00716.89
8.0.200.0030.00517.05
8.0.190.0050.00317.00
8.0.180.0050.00216.96
8.0.170.0070.00216.84
8.0.160.0110.00416.89
8.0.150.0130.00216.87
8.0.140.0100.00316.93
8.0.130.0080.00515.11
8.0.120.0080.00616.91
8.0.110.0080.00516.99
8.0.100.0070.00716.85
8.0.90.0130.00016.95
8.0.80.0080.00816.91
8.0.70.0050.01016.91
8.0.60.0090.00516.76
8.0.50.0100.00316.93
8.0.30.0080.01117.06
8.0.20.0120.00716.88
8.0.10.0060.00817.01
8.0.00.0090.00716.91
7.4.330.0030.00315.55
7.4.320.0060.00016.46
7.4.300.0060.00016.61
7.4.290.0040.00416.58
7.4.280.0040.00416.58
7.4.270.0150.00016.52
7.4.260.0110.00114.93
7.4.250.0060.00616.54
7.4.240.0070.00716.53
7.4.230.0130.00116.63
7.4.220.0110.00216.47
7.4.210.0090.00816.54
7.4.200.0080.00716.47
7.4.190.0150.00616.60
7.4.180.0160.00316.51
7.4.160.0150.00516.56
7.4.150.0110.00716.57
7.4.140.0130.00416.45
7.4.130.0120.00416.35
7.4.120.0130.00616.52
7.4.110.0130.00516.36
7.4.100.0100.01016.48
7.4.90.0130.00616.48
7.4.80.0080.00616.34
7.4.70.0110.00816.44
7.4.60.0130.00516.24
7.4.50.0130.00416.42
7.4.40.0130.00516.26
7.4.30.0090.01016.41
7.4.20.0110.00516.43
7.4.10.0070.00916.35
7.4.00.0100.00916.28
7.3.330.0090.00516.26
7.3.320.0100.00314.69
7.3.310.0120.00216.10
7.3.300.0100.00516.17
7.3.290.0100.00816.17
7.3.280.0170.00616.26
7.3.270.0200.00516.11
7.3.260.0180.00216.26
7.3.250.0140.00516.29
7.3.240.0160.00416.30
7.3.230.0140.00516.15
7.3.220.0150.00516.22
7.3.210.0150.00416.06
7.3.200.0140.00416.16
7.3.190.0120.00616.29
7.3.180.0090.01016.23
7.3.170.0120.00516.29
7.3.160.0110.00816.19
7.3.150.0110.00816.32
7.3.140.0130.00516.17
7.3.130.0120.00616.23
7.3.120.0140.00516.07
7.3.110.0130.00516.27
7.3.100.0130.00516.20
7.3.90.0130.00416.40
7.3.80.0100.00916.17
7.3.70.0130.00416.27
7.3.60.0130.00516.24
7.3.50.0130.00516.33
7.3.40.0090.01016.31
7.3.30.0120.00616.32
7.3.20.0090.01017.29
7.3.10.0100.00917.14
7.3.00.0090.01017.10
7.2.340.0090.00916.15
7.2.330.0160.00216.35
7.2.320.0150.00416.35
7.2.310.0140.00716.39
7.2.300.0140.00416.29
7.2.290.0120.00916.39
7.2.280.0140.00616.31
7.2.270.0150.00316.40
7.2.260.0060.01216.25
7.2.250.0100.00816.26
7.2.240.0100.00816.40
7.2.230.0150.00316.29
7.2.220.0130.00916.37
7.2.210.0110.00716.33
7.2.200.0130.00716.47
7.2.190.0130.00616.44
7.2.180.0100.00916.37
7.2.170.0130.00616.46
7.2.160.0100.00716.50
7.2.150.0140.00517.44
7.2.140.0060.01217.45
7.2.130.0200.00017.37
7.2.120.0130.00517.41
7.2.110.0140.00517.41
7.2.100.0160.00217.45
7.2.90.0160.00417.37
7.2.80.0100.00917.41
7.2.70.0120.00617.30
7.2.60.0260.00617.44
7.2.50.0140.00417.41
7.2.40.0140.00417.40
7.2.30.0140.00617.48
7.2.20.0090.01017.32
7.2.10.0140.00517.47
7.2.00.0110.00717.55

preferences:
95.06 ms | 1562 KiB | 5 Q