3v4l.org

run code in 300+ PHP versions simultaneously
<?php $v = DateTimeImmutable::createFromFormat('m-d', '99-99'); var_dump($v); var_dump(DateTimeImmutable::getLastErrors());
Output for 8.2.0 - 8.2.29, 8.3.0 - 8.3.25, 8.4.1 - 8.4.12
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2033-06-07 14:27:37.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(false)
Output for 8.1.0 - 8.1.33
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2033-06-07 14:27:37.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:
57.02 ms | 408 KiB | 5 Q