<?php
set_time_limit(0);
echo date('Y-m-d H:i:s').'<br/>';
function xrange($start, $end, $step = 1) {
for ($i = $start; $i <= $end; $i += $step) {
yield $i;
}
}
foreach (xrange(1, 10000) as $num) {
echo $num;
echo "<br/>";
}
/*
* 1
* 2
* ...
* 1000
*/
echo "<br/>";
echo date('Y-m-d H:i:s');