3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $d = new \DateTime('2016-03-31T00:00:04.917180', new \DateTimeZone('America/New_York')); $d->setTimezone(new \DateTimeZone('UTC')); echo $d->format('Y-m-d H:i:s') . ' ' . $d->getTimestamp(); var_dump(date('y-m-d H:i:s', substr(1459382404753609, 0, strlen(1459396804))));
based on m4Ku1
Output for 5.5.0 - 7.2.0
2016-03-31 04:00:04 1459396804string(17) "16-03-31 02:00:04"