3v4l.org

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