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] + 1; $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; }
Output for git.master, git.master_jit, rfc.property-hooks
select avg(requestTimeSec) from {tableName} where {column} between ((select max({column}) from {tableName}) - 2501) and (((select max({column}) from {tableName}) - 1)) select avg(requestTimeSec) from {tableName} where {column} between ((select max({column}) from {tableName}) - 5001) and (((select max({column}) from {tableName}) - 2501)) select avg(requestTimeSec) from {tableName} where {column} between ((select max({column}) from {tableName}) - 10001) and (((select max({column}) from {tableName}) - 5001))

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
31.57 ms | 402 KiB | 8 Q