<?php
$period = new \DatePeriod(
(new Chronos("last day of -$months month"))->setTime(23, 59, 59, 999),
new \DateInterval('P1M'),
new Chronos()
);
foreach ($period as $until) {
var_dump($until);
}
Fatal error: Uncaught Error: Class "Chronos" not found in /in/o4RAt:4
Stack trace:
#0 {main}
thrown in /in/o4RAt on line 4
Process exited with code 255.
Output for 8.3.5
Warning: PHP Startup: Unable to load dynamic library 'sodium.so' (tried: /usr/lib/php/8.3.5/modules/sodium.so (libsodium.so.23: cannot open shared object file: No such file or directory), /usr/lib/php/8.3.5/modules/sodium.so.so (/usr/lib/php/8.3.5/modules/sodium.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
Fatal error: Uncaught Error: Class "Chronos" not found in /in/o4RAt:4
Stack trace:
#0 {main}
thrown in /in/o4RAt on line 4
Process exited with code 255.
Fatal error: Uncaught Error: Class 'Chronos' not found in /in/o4RAt:4
Stack trace:
#0 {main}
thrown in /in/o4RAt on line 4
Process exited with code 255.