3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $dt = new DateTime('now', 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 gj8rJ
Output for 5.6.0 - 5.6.24, 5.6.26 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.3.0rc3
07.07.2017 11:21:23 07.07.2017 22:06:23
Output for 5.6.25
07.07.2017 11:21:24 07.07.2017 22:06:24