3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pagcurrent = 1; $paglast = 1023; $pagesToDisplay = 10; $start = $pagcurrent; if($start >= $pagesToDisplay) $start = $start - ($paglast % $pagesToDisplay); $end = $start + $pagesToDisplay; for ($i = $start; $i < $end; $i++) { echo "$i\n"; }

Abusive script

This script was stopped while abusing our resources

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
150.17 ms | 2078 KiB | 10 Q