3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?=date('d-m-Y h:i:s',strtotime(date('d-m-Y h:i:s',strtotime('02:07:03 Feb 04, 2013 PST'))." GMT"))."<br>"?> <?date_default_timezone_set('GMT')?> <?=date('d-m-Y h:i:s',strtotime(date('d-m-Y h:i:s',strtotime('02:07:03 Feb 04, 2013 PST'))." GMT"));?> <?=date_default_timezone_get()?>
Output for 5.4.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
04-02-2013 12:07:03<br>04-02-2013 10:07:03GMT
Output for 4.3.0 - 5.3.29
<?=date('d-m-Y h:i:s',strtotime(date('d-m-Y h:i:s',strtotime('02:07:03 Feb 04, 2013 PST'))." GMT"))."<br>"?> <?date_default_timezone_set('GMT')?> <?=date('d-m-Y h:i:s',strtotime(date('d-m-Y h:i:s',strtotime('02:07:03 Feb 04, 2013 PST'))." GMT"));?> <?=date_default_timezone_get()?>