3v4l.org

run code in 500+ PHP versions simultaneously
<?php $max = 130; $output = []; $current = 0; while($current <= $max) { if ($current < 100) { $current += 5; } else { $current += 25; } // Make sure we do not add anything above the current max (e.g. max = 120, current = 110 + 25 = 135) if ($current > $max) { break; } $output[] = $current; } print_r($output);

preferences:
121.8 ms | 1502 KiB | 5 Q