3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $dt = new DateTime('20151215T073625Z'); // $tz = new DateTimeZone('Asia/Kolkata'); // or whatever zone you're after // $dt->setTimezone($tz); echo $dt->format('Y-m-d H:i:s');
based on mlIuZ
Output for 5.3.20 - 7.2.0
2015-12-15 07:36:25