3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $dateTimeEast = new DateTime('today', new DateTimeZone('Asia/Ulaanbaatar')); $dateTimeWest = new DateTime('today', new DateTimeZone('Asia/Hovd')); printf( 'Mongolei Ost: %s, Mongolei West: %s', $dateTimeEast->format('O'), $dateTimeWest->format('O') );
based on riKql
Output for 5.6.0 - 5.6.7, hhvm-3.21.0, 7.0.18 - 7.0.23, 7.1.4 - 7.2.6
Mongolei Ost: +0800, Mongolei West: +0700
Output for 5.6.8 - 5.6.30, hhvm-3.18.4, 7.0.0 - 7.0.17, 7.1.0 - 7.1.3
Mongolei Ost: +0900, Mongolei West: +0800