3v4l.org

run code in 500+ PHP versions simultaneously
<?php setlocale(LC_TIME, 'it_IT.UTF-8'); $period = new DatePeriod(new DateTime('2020-04-07'),new DateInterval('P1D'),new DateTime('2020-04-18')); foreach ($period as $key => $value) { echo strftime("%A", $value->getTimestamp()).PHP_EOL; } ?>

preferences:
108.1 ms | 1638 KiB | 5 Q