3v4l.org

run code in 300+ PHP versions simultaneously
<?php $d = [ '2024-10-31T09:51:33', '2024-10-31T07:52:02.333+00:00', ]; foreach ($d as $dt) var_dump(new DateTimeImmutable($dt, new \DateTimeZone('Europe/Tallin')));
Output for 8.3.0 - 8.3.13
Fatal error: Uncaught DateInvalidTimeZoneException: DateTimeZone::__construct(): Unknown or bad timezone (Europe/Tallin) in /in/4gNlC:9 Stack trace: #0 /in/4gNlC(9): DateTimeZone->__construct('Europe/Tallin') #1 {main} thrown in /in/4gNlC on line 9
Process exited with code 255.
Output for 8.1.0 - 8.1.30, 8.2.0 - 8.2.25
Fatal error: Uncaught Exception: DateTimeZone::__construct(): Unknown or bad timezone (Europe/Tallin) in /in/4gNlC:9 Stack trace: #0 /in/4gNlC(9): DateTimeZone->__construct('Europe/Tallin') #1 {main} thrown in /in/4gNlC on line 9
Process exited with code 255.

preferences:
40.72 ms | 408 KiB | 5 Q