3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo date('d-m-Y h:i:s',strtotime(date('d-m-Y h:i:s',strtotime('02:07:03 Feb 04, 2013 PST'))." GMT")); echo date_default_timezone_set('GMT'); echo date('d-m-Y h:i:s',strtotime(date('d-m-Y h:i:s',strtotime('02:07:03 Feb 04, 2013 PST'))." GMT")); echo date_default_timezone_get();
Output for 5.1.3 - 7.1.0
04-02-2013 12:07:03104-02-2013 10:07:03GMT
Output for 5.1.0 - 5.1.2
01-01-1970 01:00:00101-01-1970 12:00:00GMT
Output for 5.0.0 - 5.0.5
05-08-2009 01:07:03 Fatal error: Call to undefined function date_default_timezone_set() in /in/61tpU on line 2
Process exited with code 255.
Output for 4.4.5 - 4.4.9
05-08-2009 01:07:03 Fatal error: Call to undefined function: date_default_timezone_set() in /in/61tpU on line 2
Process exited with code 255.
Output for 4.3.2 - 4.4.4
05-08-2009 01:07:03 Fatal error: Call to undefined function: date_default_timezone_set() in /in/61tpU on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1
05-08-2009 01:07:03 Fatal error: Call to undefined function: date_default_timezone_set() in /in/61tpU on line 2