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.3.60.0090.01216.49
8.3.50.0070.01016.32
8.3.40.0000.01420.10
8.3.30.0110.00418.84
8.3.20.0040.00424.18
8.3.10.0000.00724.66
8.3.00.0070.00026.16
8.2.180.0030.01418.41
8.2.170.0070.00718.91
8.2.160.0100.00322.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0070.00026.16
8.2.110.0030.00621.12
8.2.100.0090.00317.91
8.2.90.0080.00017.88
8.2.80.0080.00318.16
8.2.70.0090.00017.63
8.2.60.0040.00417.63
8.2.50.0040.00417.63
8.2.40.0160.00017.62
8.2.30.0130.00317.62
8.2.20.0060.00317.62
8.2.10.0090.00617.62
8.2.00.0000.01517.62
8.1.280.0120.00625.92
8.1.270.0050.00324.66
8.1.260.0070.01126.35
8.1.250.0030.00528.09
8.1.240.0030.00620.88
8.1.230.0110.00022.20
8.1.220.0080.00017.79
8.1.210.0040.00418.77
8.1.200.0030.00517.23
8.1.190.0060.00319.18
8.1.180.0000.00918.10
8.1.170.0120.00317.62
8.1.160.0100.00517.62
8.1.150.0040.01317.62
8.1.140.0050.01017.62
8.1.130.0150.00017.62
8.1.120.0110.00417.62
8.1.110.0050.01117.62
8.1.100.0130.00317.62
8.1.90.0130.00317.62
8.1.80.0120.00617.62
8.1.70.0150.00017.62
8.1.60.0130.00417.62
8.1.50.0070.00917.62
8.1.40.0130.00417.62
8.1.30.0110.00717.62
8.1.20.0160.00317.62
8.1.10.0210.00317.62
8.1.00.0190.00017.62
8.0.300.0040.00419.98
8.0.290.0000.00816.75
8.0.280.0160.00017.62
8.0.270.0140.00317.62
8.0.260.0080.00817.62
8.0.250.0060.01117.62
8.0.240.0130.00317.62
8.0.230.0100.00717.62
8.0.220.0100.00717.62
8.0.210.0150.00017.62
8.0.200.0100.00717.62
8.0.190.0090.00617.62
8.0.180.0060.00917.62
8.0.170.0120.00417.62
8.0.160.0130.00317.62
8.0.150.0110.00517.62
8.0.140.0110.00617.62
8.0.130.0100.00517.62
8.0.120.0100.00517.62
8.0.110.0100.00517.62
8.0.100.0130.00317.62
8.0.90.0090.00617.62
8.0.80.0070.00917.62
8.0.70.0120.00417.62
8.0.60.0080.00817.62
8.0.50.0080.00817.62
8.0.30.0150.00017.62
8.0.20.0120.00417.62
8.0.10.0140.00317.62

preferences:
27.52 ms | 400 KiB | 5 Q