3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(DateTime::createFromFormat('Y-m-d', '99999-12-12')); var_dump(DateTime::getLastErrors());
Output for 7.4.33, 8.0.1 - 8.0.30, 8.1.0 - 8.1.31, 8.2.0 - 8.2.26, 8.3.0 - 8.3.14, 8.4.1
bool(false) array(4) { ["warning_count"]=> int(0) ["warnings"]=> array(0) { } ["error_count"]=> int(2) ["errors"]=> array(2) { [4]=> string(40) "The separation symbol could not be found" [8]=> string(13) "Trailing data" } }

preferences:
69.72 ms | 407 KiB | 5 Q