3v4l.org

run code in 300+ PHP versions simultaneously
<?php $datetime = new \DateTimeImmutable( '2770-01-00 15:00:00.000000', new \DateTimeZone('UTC') ); \var_dump($datetime->format('j') === '0'); \var_dump($datetime);
based on uqIfl
Output for 7.2.0 - 7.2.33, 7.3.0 - 7.3.21, 7.4.0 - 7.4.10, 8.0.0alpha1 - beta3
bool(true) object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2770-01-00 15:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }