- ini_set: documentation ( source)
- error_reporting: documentation ( source)
<?php
declare(strict_types=1);
error_reporting(-1);
ini_set('display_errors', 'On');
$start = new \DateTimeImmutable('2019-02-10 23:59:57');
for ($i = 0; $i < 7; ++$i) {
echo $start->format('c'), "\n";
$start = $start->modify('+1 second');
}