3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $start = 1; $count = 50; $total = 4900; $error_total = 0; for ($start = 1; $start < $total; $start += $count) { $error_total += min(($start - 1) + $count, $total); } echo $error_total.PHP_EOL;
Output for 4.3.10 - 4.4.9, 5.0.2 - 7.1.0
242550
Output for 4.3.0 - 4.3.9, 5.0.0 - 5.0.1
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/is5ip on line 12 242550PHP_EOL