3v4l.org

run code in 300+ PHP versions simultaneously
<?php $oDay = new DateTimeImmutable('2019-10-25'); $oDateInterval = DateInterval::createFromDateString('1 day'); $oDays = new DatePeriod($oDay, $oDateInterval, $oDay->modify('+1 day')); print serialize($oDays);

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
151.77 ms | 2263 KiB | 9 Q