3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $timeZone = new \DateTimeZone('Europe/Madrid'); $dateTime = \DateTime::createFromFormat('U', 1499716740)->setTimezone($timeZone); var_dump($dateTime); $dateTime = $dateTime->setTimezone($timeZone); var_dump($dateTime);