3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $dt = new DateTime('today', new DateTimeZone('Europe/Prague')); echo $dt->format('d.m.Y H:i:s').'\n'; $dt->setTimezone(new DateTimeZone('Pacific/Chatham')); echo $dt->format('d.m.Y H:i:s');
based on HV2Lk
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.2.0
07.07.2017 00:00:00\n07.07.2017 10:45:00