3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(new DateTime('-00000001'));
Output for 8.3.0 - 8.3.6
Fatal error: Uncaught DateMalformedStringException: Failed to parse time string (-00000001) at position 7 (0): Unexpected character in /in/Odska:3 Stack trace: #0 /in/Odska(3): DateTime->__construct('-00000001') #1 {main} thrown in /in/Odska on line 3
Process exited with code 255.
Output for 8.1.7 - 8.1.28, 8.2.0 - 8.2.18
Fatal error: Uncaught Exception: Failed to parse time string (-00000001) at position 7 (0): Unexpected character in /in/Odska:3 Stack trace: #0 /in/Odska(3): DateTime->__construct('-00000001') #1 {main} thrown in /in/Odska on line 3
Process exited with code 255.
Output for 5.5.14 - 5.5.38, 5.6.0 - 5.6.38, 7.0.0 - 7.0.31, 7.1.0 - 7.1.23, 7.2.0 - 7.2.33, 7.3.16 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.6
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-11-09 00:01:00.000000" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+00:00" }
Output for 5.5.0 - 5.5.13
object(DateTime)#1 (3) { ["date"]=> string(19) "2015-11-09 00:01:00" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+00:00" }

preferences:
243.47 ms | 401 KiB | 286 Q