3v4l.org

run code in 300+ 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:
16.82 ms | 402 KiB | 5 Q