3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = 1; $count = 50; $total = 18887; $error_total = 0; for ($start = 1; $start < $total; $start += $count) { $error_total += min(($start - 1) + $count, $total); } echo $error_total."\n";

preferences:
42.93 ms | 402 KiB | 5 Q