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('America/Los_Angeles')); echo $dt->format('d.m.Y H:i:s');
based on nBQuV
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.2.6
07.07.2017 11:52:44 07.07.2017 02:52:44