3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo new \DateTime('1675420652000');
Output for 8.3.0 - 8.3.4
Fatal error: Uncaught DateMalformedStringException: Failed to parse time string (1675420652000) at position 12 (0): Unexpected character in /in/56bfo:3 Stack trace: #0 /in/56bfo(3): DateTime->__construct('1675420652000') #1 {main} thrown in /in/56bfo on line 3
Process exited with code 255.
Output for 8.1.0 - 8.1.27, 8.2.0 - 8.2.17
Fatal error: Uncaught Exception: Failed to parse time string (1675420652000) at position 12 (0): Unexpected character in /in/56bfo:3 Stack trace: #0 /in/56bfo(3): DateTime->__construct('1675420652000') #1 {main} thrown in /in/56bfo on line 3
Process exited with code 255.
Output for 8.0.1 - 8.0.30
Fatal error: Uncaught Exception: DateTime::__construct(): Failed to parse time string (1675420652000) at position 12 (0): Unexpected character in /in/56bfo:3 Stack trace: #0 /in/56bfo(3): DateTime->__construct('1675420652000') #1 {main} thrown in /in/56bfo on line 3
Process exited with code 255.

preferences:
92.68 ms | 401 KiB | 85 Q