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]); 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.0090.00820.04
8.5.00.0120.00919.97
8.4.150.0020.00014.05
8.4.140.0140.00917.81
8.4.130.0110.00917.97
8.4.120.0130.00720.46
8.4.110.0100.00722.34
8.4.100.0110.00518.59
8.4.90.0050.00418.67
8.4.80.0130.00618.72
8.4.70.0100.01017.71
8.4.60.0070.01218.65
8.4.50.0150.00818.91
8.4.40.0170.00017.85
8.4.30.0080.00020.64
8.4.20.0060.01324.17
8.4.10.0030.00623.70
8.3.280.0100.01118.49
8.3.270.0150.00516.69
8.3.260.0100.00916.73
8.3.250.0130.00518.72
8.3.240.0160.00417.24
8.3.230.0130.00616.61
8.3.220.0120.00819.14
8.3.210.0100.00816.79
8.3.200.0070.00216.58
8.3.190.0100.00917.09
8.3.180.0080.01116.34
8.3.170.0060.01220.74
8.3.160.0100.00717.31
8.3.150.0080.00816.91
8.3.140.0070.01116.46
8.3.130.0000.01016.48
8.3.120.0030.00620.84
8.3.110.0090.00020.94
8.3.100.0030.00524.06
8.3.90.0040.00426.77
8.3.80.0030.00617.97
8.3.70.0140.00416.50
8.3.60.0070.01416.63
8.3.50.0110.00418.54
8.3.40.0110.00320.04
8.3.30.0040.01118.86
8.3.20.0050.00224.18
8.3.10.0040.00424.66
8.3.00.0040.00426.16
8.2.290.0120.00620.37
8.2.280.0040.00518.38
8.2.270.0060.01219.20
8.2.260.0030.01316.70
8.2.250.0000.00818.83
8.2.240.0110.00418.98
8.2.230.0080.00022.58
8.2.220.0110.00837.54
8.2.210.0040.01526.77
8.2.200.0090.00616.63
8.2.190.0110.00416.63
8.2.180.0090.00616.50
8.2.170.0070.00718.94
8.2.160.0070.00722.96
8.2.150.0070.00025.66
8.2.140.0050.00324.66
8.2.130.0060.00326.16
8.2.120.0050.00321.00
8.2.110.0030.00722.11
8.2.100.0120.00017.69
8.2.90.0060.00319.97
8.2.80.0040.00417.97
8.2.70.0040.00417.63
8.2.60.0030.00517.63
8.2.50.0050.00317.75
8.2.40.0130.00517.62
8.2.30.0100.00717.68
8.2.20.0130.00417.62
8.2.10.0120.00717.62
8.2.00.0130.00717.62
8.1.330.0110.00821.95
8.1.320.0090.01116.12
8.1.310.0040.00418.25
8.1.300.0130.00617.85
8.1.290.0060.00330.84
8.1.280.0120.00925.92
8.1.270.0150.00024.66
8.1.260.0100.00026.35
8.1.250.0000.00828.09
8.1.240.0080.00023.89
8.1.230.0080.00422.75
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0050.00317.63
8.1.190.0040.00417.35
8.1.180.0040.00418.10
8.1.170.0160.00217.62
8.1.160.0150.00217.62
8.1.150.0080.00817.62
8.1.140.0100.00617.62
8.1.130.0120.00417.62
8.1.120.0130.00417.62
8.1.110.0140.00317.62
8.1.100.0140.00217.62
8.1.90.0120.00317.62
8.1.80.0130.00417.62
8.1.70.0130.00417.62
8.1.60.0110.00717.62
8.1.50.0130.00417.62
8.1.40.0160.00117.62
8.1.30.0160.00117.62
8.1.20.0140.00317.62
8.1.10.0120.00617.62
8.1.00.0160.00217.62
8.0.300.0070.00020.25
8.0.290.0030.00616.63
8.0.280.0140.00317.62
8.0.270.0170.00017.62
8.0.260.0090.00817.62
8.0.250.0150.00217.62
8.0.240.0090.00817.62
8.0.230.0100.00617.62
8.0.220.0140.00317.62
8.0.210.0110.00517.62
8.0.200.0110.00517.62
8.0.190.0070.01017.62
8.0.180.0160.00317.62
8.0.170.0170.00017.62
8.0.160.0140.00217.62
8.0.150.0100.00817.62
8.0.140.0100.00717.62
8.0.130.0100.00617.62
8.0.120.0140.00217.62
8.0.110.0130.00217.62
8.0.100.0070.00917.62
8.0.90.0130.00317.62
8.0.80.0090.00717.62
8.0.70.0110.00617.62
8.0.60.0110.00417.62
8.0.50.0090.00617.62
8.0.30.0080.00817.62
8.0.20.0160.00017.62
8.0.10.0140.00217.62

preferences:
112.17 ms | 403 KiB | 5 Q