3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = new \DateTime('2024-07-31T19:09:28.065989401Z');
Output for 8.0.10 - 8.0.30, 8.1.0 - 8.1.31, 8.2.0 - 8.2.26, 8.3.0 - 8.3.14, 8.4.1
Output for 7.4.33, 8.0.0 - 8.0.9
Fatal error: Uncaught Exception: DateTime::__construct(): Failed to parse time string (2024-07-31T19:09:28.065989401Z) at position 0 (2): The timezone could not be found in the database in /in/sr3Bv:3 Stack trace: #0 /in/sr3Bv(3): DateTime->__construct('2024-07-31T19:0...') #1 {main} thrown in /in/sr3Bv on line 3
Process exited with code 255.

preferences:
54.38 ms | 407 KiB | 5 Q