3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $date = new DateTime(); $date->setTimezone(new DateTimeZone('UTC')); $date->setTimestamp(strtotime('2017-06-14 22:39:40')); echo $date->format('F j, Y @ g:i:s a e'); $date->setTimestamp(strtotime('2017-06-14T19:39:38-07:00')); echo $date->format('F j, Y @ g:i:s a e');
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.3.0alpha1
June 14, 2017 @ 8:39:40 pm UTCJune 15, 2017 @ 2:39:38 am UTC