3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(new DateTime('99999-12-12')); var_dump(DateTime::getLastErrors());
Output for 8.2.0 - 8.2.30, 8.3.0 - 8.3.30, 8.4.1 - 8.4.18, 8.5.0 - 8.5.3
object(DateTime)#1 (3) { ["date"]=> string(26) "2009-12-12 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(false)
Output for 8.0.1 - 8.0.30, 8.1.0 - 8.1.34
object(DateTime)#1 (3) { ["date"]=> string(26) "2009-12-12 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } array(4) { ["warning_count"]=> int(0) ["warnings"]=> array(0) { } ["error_count"]=> int(0) ["errors"]=> array(0) { } }

preferences:
70.83 ms | 1137 KiB | 4 Q