3v4l.org

run code in 200+ php & hhvm versions
<?php $utc = new \DateTimeImmutable('2016-10-30T00:00:00+00:0'); $prg = $utc->setTimeZone(new \DateTimeZone('Europe/Prague')); echo $prg->format('c') . "\n"; $prg->getTimestamp(); echo $prg->format('c') . "\n";
based on stm18
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.3.1
2016-10-30T02:00:00+02:00 2016-10-30T02:00:00+01:00
Output for hhvm-3.12.14 - 3.17.3
2016-10-30T02:00:00+02:00 2016-10-30T02:00:00+02:00