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'); $dt->setTimezone(new DateTimeZone('Pacific/Chatham')); echo $dt->format('d.m.Y H:i:s');
based on AFGin
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.2.0
07.07.2017 00:00:0007.07.2017 10:45:00