3v4l.org

run code in 200+ PHP versions simultaneously
<?php //Source: https://bugs.php.net/bug.php?id=67634 $date = \DateTimeImmutable::createFromFormat(\DateTime::ATOM, '2019-11-03T01:00:00-05:00')->setTimezone(new \DateTimeZone('America/New_York')); var_dump($date->format(\DateTimeImmutable::ATOM)); $date->getTimestamp(); var_dump($date->format(\DateTimeImmutable::ATOM));
based on M5Hcu