3v4l.org

run code in 300+ PHP versions simultaneously
<?php $steps = [ 2500, 5000, 10000, ]; for ($i = 0, $count = count($steps); $i < $count; $i++) { $step = $steps[$i]; $previousStepDiff = $step - ($steps[$i-1] ?? $steps[0]) - 1; echo <<<sql select avg(requestTimeSec) from {tableName} where {column} between ((select max({column}) from {tableName}) - {$step}) and (((select max({column}) from {tableName}) - {$previousStepDiff})) sql; }

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.10.0150.00620.23
8.5.00.0130.00821.73
8.4.150.0030.00014.05
8.4.140.0130.00717.68
8.4.130.0160.00617.61
8.4.120.0140.00623.94
8.4.110.0120.00822.31
8.4.100.0080.00217.43
8.4.90.0060.00518.09
8.4.80.0090.01017.89
8.4.70.0060.00217.73
8.4.60.0110.01118.50
8.4.50.0080.00920.54
8.4.40.0080.01217.89
8.4.30.0080.00020.55
8.4.20.0130.00724.12
8.4.10.0000.00923.83
8.3.280.0020.00114.05
8.3.270.0140.00616.52
8.3.260.0100.00716.41
8.3.250.0140.00518.88
8.3.240.0070.00216.82
8.3.230.0100.00816.66
8.3.220.0040.00316.98
8.3.210.0100.00816.79
8.3.200.0040.00516.53
8.3.190.0110.00816.89
8.3.180.0120.00516.74
8.3.170.0120.00618.74
8.3.160.0070.01117.13
8.3.150.0040.00417.38
8.3.140.0050.00316.48
8.3.130.0060.00316.74
8.3.120.0080.00818.88
8.3.110.0100.00720.94
8.3.100.0060.00316.63
8.3.90.0040.00426.77
8.3.80.0030.00618.43
8.3.70.0100.00616.50
8.3.60.0140.00716.63
8.3.50.0110.01116.47
8.3.40.0110.00419.91
8.3.30.0110.00418.88
8.3.20.0070.00024.18
8.3.10.0000.00724.66
8.3.00.0070.00026.16
8.2.290.0120.00922.48
8.2.280.0100.00818.23
8.2.270.0120.00618.90
8.2.260.0030.00617.46
8.2.250.0070.00416.62
8.2.240.0030.00616.51
8.2.230.0070.00322.58
8.2.220.0090.00324.06
8.2.210.0080.00026.77
8.2.200.0030.00616.50
8.2.190.0100.00716.59
8.2.180.0120.00316.48
8.2.170.0140.00719.04
8.2.160.0070.00722.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0040.00426.16
8.2.110.0030.00619.09
8.2.100.0080.00417.97
8.2.90.0000.00817.75
8.2.80.0040.00418.91
8.2.70.0030.00617.50
8.2.60.0040.00417.75
8.2.50.0030.00517.63
8.2.40.0140.00317.63
8.2.30.0150.00017.62
8.2.20.0110.00417.62
8.2.10.0100.01017.62
8.2.00.0140.00317.75
8.1.330.0110.00718.28
8.1.320.0120.00816.22
8.1.310.0040.00416.70
8.1.300.0070.00416.65
8.1.290.0040.00430.84
8.1.280.0190.00025.92
8.1.270.0040.00424.66
8.1.260.0070.01126.35
8.1.250.0040.00428.09
8.1.240.0030.00821.94
8.1.230.0080.00320.88
8.1.220.0030.00618.64
8.1.210.0000.00818.77
8.1.200.0050.00317.23
8.1.190.0080.00017.36
8.1.180.0000.00818.10
8.1.170.0150.00017.62
8.1.160.0110.00517.62
8.1.150.0080.00817.62
8.1.140.0100.00617.62
8.1.130.0080.00817.62
8.1.120.0120.00317.62
8.1.110.0090.00617.62
8.1.100.0140.00317.62
8.1.90.0130.00317.62
8.1.80.0040.01217.62
8.1.70.0120.00417.62
8.1.60.0080.00817.62
8.1.50.0170.00017.62
8.1.40.0090.00917.62
8.1.30.0150.00317.62
8.1.20.0140.00217.62
8.1.10.0120.00617.62
8.1.00.0170.00017.62
8.0.300.0040.00419.88
8.0.290.0040.00416.75
8.0.280.0080.00817.62
8.0.270.0120.00317.62
8.0.260.0120.00417.62
8.0.250.0140.00317.62
8.0.240.0190.00517.62
8.0.230.0140.00317.62
8.0.220.0110.00617.62
8.0.210.0120.00417.62
8.0.200.0130.00317.62
8.0.190.0180.00017.62
8.0.180.0060.01017.62
8.0.170.0110.00617.62
8.0.160.0080.00817.62
8.0.150.0160.00017.62
8.0.140.0080.00817.62
8.0.130.0160.00017.62
8.0.120.0140.00217.62
8.0.110.0110.00417.62
8.0.100.0080.00817.62
8.0.90.0160.00017.62
8.0.80.0080.00817.62
8.0.70.0080.00817.62
8.0.60.0100.00517.62
8.0.50.0130.00217.62
8.0.30.0120.00517.62
8.0.20.0070.01017.62
8.0.10.0150.00017.62

preferences:
33.8 ms | 403 KiB | 5 Q