3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = '10-01-2019'; $end = '21-02-2019'; // This is to progress the range through each day. // 24 days, 60 minutes, 60 seconds $step = 24 * 60 * 60; $days = array_map(function ($day) { return date('d-M-Y', $day); }, range(strtotime($end), strtotime($start), -$step)); array_walk($days, function ($day) { echo $day."\n"; });
Output for 7.1.25, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.33, 8.2.0 - 8.2.29, 8.3.0 - 8.3.25, 8.4.1 - 8.4.12
21-Feb-2019 20-Feb-2019 19-Feb-2019 18-Feb-2019 17-Feb-2019 16-Feb-2019 15-Feb-2019 14-Feb-2019 13-Feb-2019 12-Feb-2019 11-Feb-2019 10-Feb-2019 09-Feb-2019 08-Feb-2019 07-Feb-2019 06-Feb-2019 05-Feb-2019 04-Feb-2019 03-Feb-2019 02-Feb-2019 01-Feb-2019 31-Jan-2019 30-Jan-2019 29-Jan-2019 28-Jan-2019 27-Jan-2019 26-Jan-2019 25-Jan-2019 24-Jan-2019 23-Jan-2019 22-Jan-2019 21-Jan-2019 20-Jan-2019 19-Jan-2019 18-Jan-2019 17-Jan-2019 16-Jan-2019 15-Jan-2019 14-Jan-2019 13-Jan-2019 12-Jan-2019 11-Jan-2019 10-Jan-2019

preferences:
141.99 ms | 409 KiB | 5 Q