3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $dt = new DateTime(); $dt->setTimezone(new DateTimeZone('UTC')); var_dump($dt); $dt->setTimezone(new DateTimeZone('Europe/London')); var_dump($dt);
Output for 7.2.0
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-09-29 16:02:39.005183" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#1 (3) { ["date"]=> string(26) "2015-09-29 17:02:39.005183" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/London" }
Output for 7.1.10
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-09-29 16:02:39.004213" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#1 (3) { ["date"]=> string(26) "2015-09-29 17:02:39.004213" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/London" }
Output for 7.1.7
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-09-29 16:02:39.005458" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#1 (3) { ["date"]=> string(26) "2015-09-29 17:02:39.005458" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/London" }
Output for 7.1.6
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-09-29 16:02:39.008389" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#1 (3) { ["date"]=> string(26) "2015-09-29 17:02:39.008389" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/London" }
Output for 7.1.5
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-09-29 16:02:39.005311" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#1 (3) { ["date"]=> string(26) "2015-09-29 17:02:39.005311" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/London" }
Output for 7.1.0
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-09-29 16:02:39.004045" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#1 (3) { ["date"]=> string(26) "2015-09-29 17:02:39.004045" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/London" }
Output for 5.6.28, 7.0.20
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-09-29 16:02:39.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#1 (3) { ["date"]=> string(26) "2015-09-29 17:02:39.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/London" }
Output for 7.0.6
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-05-03 03:35:35.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#1 (3) { ["date"]=> string(26) "2016-05-03 04:35:35.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/London" }
Output for 7.0.5
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-02 16:41:41.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-02 17:41:41.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/London" }
Output for 7.0.4
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-10 03:36:36.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-10 03:36:36.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/London" }
Output for 7.0.3
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-18 03:57:39.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-18 03:57:39.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/London" }
Output for 7.0.2
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-21 14:25:41.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-21 14:25:41.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/London" }
Output for 7.0.1
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-23 15:01:32.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-23 15:01:32.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/London" }
Output for 7.0.0
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-26 16:49:12.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-26 16:49:12.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/London" }
Output for 5.6.21
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-05-01 22:39:25.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#1 (3) { ["date"]=> string(26) "2016-05-01 23:39:25.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/London" }
Output for 5.6.20
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-09 11:56:30.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-09 12:56:30.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/London" }
Output for 5.6.19
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-07 03:19:10.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-07 03:19:10.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/London" }
Output for 5.6.18
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-14 16:38:08.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-14 16:38:08.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/London" }
Output for 5.6.17
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-19 08:21:49.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-19 08:21:49.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/London" }
Output for 5.6.16
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-27 17:35:28.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-27 18:35:28.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/London" }
Output for 5.6.15
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-28 18:28:25.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-28 19:28:25.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/London" }
Output for 5.6.14
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-01 20:59:20.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-01 21:59:20.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/London" }
Output for 5.6.13
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-15 01:00:07.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-15 02:00:07.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/London" }
Output for 5.6.12
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-19 14:28:32.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-19 15:28:32.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/London" }
Output for 5.6.11
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-22 21:24:48.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-22 22:24:48.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/London" }
Output for 5.6.10
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-24 23:16:44.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-25 00:16:44.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/London" }
Output for 5.6.9
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-27 04:17:13.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-27 05:17:13.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/London" }
Output for 5.6.8
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-29 12:08:37.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-29 13:08:37.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/London" }
Output for 5.6.7
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-05-25 01:40:03.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#1 (3) { ["date"]=> string(26) "2016-05-25 02:40:03.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/London" }
Output for 5.5.35
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-05-22 02:27:26.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#1 (3) { ["date"]=> string(26) "2016-05-22 03:27:26.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/London" }
Output for 5.5.34
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-10 17:54:34.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-10 18:54:34.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/London" }
Output for 5.5.33
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-08 14:32:44.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-08 14:32:44.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/London" }
Output for 5.5.32
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-16 20:23:05.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-16 20:23:05.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/London" }
Output for 5.5.31
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-20 11:12:38.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-20 11:12:38.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/London" }
Output for 5.5.30
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-31 20:29:46.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-31 21:29:46.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/London" }
Output for 5.5.29
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-16 15:06:07.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-16 16:06:07.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/London" }
Output for 5.5.28
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-20 17:31:02.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-20 18:31:02.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/London" }
Output for 5.5.27
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-21 19:50:10.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-21 20:50:10.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/London" }
Output for 5.5.26
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-26 01:40:33.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-26 02:40:33.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/London" }
Output for 5.5.25
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-28 07:36:56.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-28 08:36:56.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/London" }
Output for 5.5.24
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-05-23 14:30:19.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#1 (3) { ["date"]=> string(26) "2016-05-23 15:30:19.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/London" }
Output for 5.4.44 - 5.4.45
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-09-29 16:02:50.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#1 (3) { ["date"]=> string(26) "2015-09-29 17:02:50.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/London" }
Output for 5.4.37 - 5.4.43
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-09-29 16:02:51.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#1 (3) { ["date"]=> string(26) "2015-09-29 17:02:51.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/London" }
Output for 5.4.30 - 5.4.36
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-09-29 16:02:52.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#1 (3) { ["date"]=> string(26) "2015-09-29 17:02:52.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/London" }
Output for 5.4.23 - 5.4.29
object(DateTime)#1 (3) { ["date"]=> string(19) "2015-09-29 16:02:53" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#1 (3) { ["date"]=> string(19) "2015-09-29 17:02:53" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/London" }
Output for 5.4.17 - 5.4.22
object(DateTime)#1 (3) { ["date"]=> string(19) "2015-09-29 16:02:54" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#1 (3) { ["date"]=> string(19) "2015-09-29 17:02:54" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/London" }
Output for 5.4.10 - 5.4.16
object(DateTime)#1 (3) { ["date"]=> string(19) "2015-09-29 16:02:55" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#1 (3) { ["date"]=> string(19) "2015-09-29 17:02:55" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/London" }
Output for 5.4.8 - 5.4.9
object(DateTime)#1 (3) { ["date"]=> string(19) "2015-09-29 16:02:56" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#1 (3) { ["date"]=> string(19) "2015-09-29 17:02:56" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/London" }
Output for 5.4.7
object(DateTime)#1 (3) { ["date"]=> string(19) "2015-10-27 00:36:51" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#1 (3) { ["date"]=> string(19) "2015-10-27 00:36:51" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/London" }
Output for 5.4.6
object(DateTime)#1 (3) { ["date"]=> string(19) "2015-10-27 01:54:21" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#1 (3) { ["date"]=> string(19) "2015-10-27 01:54:21" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/London" }
Output for 5.4.5
object(DateTime)#1 (3) { ["date"]=> string(19) "2015-10-27 03:28:26" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#1 (3) { ["date"]=> string(19) "2015-10-27 03:28:26" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/London" }
Output for 5.4.4
object(DateTime)#1 (3) { ["date"]=> string(19) "2015-10-27 05:01:30" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#1 (3) { ["date"]=> string(19) "2015-10-27 05:01:30" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/London" }
Output for 5.4.3
object(DateTime)#1 (3) { ["date"]=> string(19) "2015-10-27 06:43:16" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#1 (3) { ["date"]=> string(19) "2015-10-27 06:43:16" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/London" }
Output for 5.4.2
object(DateTime)#1 (3) { ["date"]=> string(19) "2015-10-27 08:26:32" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#1 (3) { ["date"]=> string(19) "2015-10-27 08:26:32" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/London" }
Output for 5.3.29
object(DateTime)#1 (3) { ["date"]=> string(19) "2015-10-02 08:46:46" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#1 (3) { ["date"]=> string(19) "2015-10-02 09:46:46" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/London" }
Output for 5.3.28
object(DateTime)#1 (3) { ["date"]=> string(19) "2015-10-02 08:46:45" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#1 (3) { ["date"]=> string(19) "2015-10-02 09:46:45" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/London" }
Output for 5.3.26 - 5.3.27
object(DateTime)#1 (3) { ["date"]=> string(19) "2015-10-02 08:46:44" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#1 (3) { ["date"]=> string(19) "2015-10-02 09:46:44" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/London" }
Output for 5.3.25
object(DateTime)#1 (3) { ["date"]=> string(19) "2015-10-02 08:46:43" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#1 (3) { ["date"]=> string(19) "2015-10-02 09:46:43" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/London" }
Output for 5.3.24
object(DateTime)#1 (3) { ["date"]=> string(19) "2015-10-02 08:46:42" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#1 (3) { ["date"]=> string(19) "2015-10-02 09:46:42" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/London" }
Output for 5.3.22 - 5.3.23
object(DateTime)#1 (3) { ["date"]=> string(19) "2015-10-02 08:46:41" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#1 (3) { ["date"]=> string(19) "2015-10-02 09:46:41" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/London" }
Output for 5.3.21
object(DateTime)#1 (3) { ["date"]=> string(19) "2015-10-02 08:46:40" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#1 (3) { ["date"]=> string(19) "2015-10-02 09:46:40" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/London" }
Output for 5.3.19 - 5.3.20
object(DateTime)#1 (3) { ["date"]=> string(19) "2015-10-02 08:46:39" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#1 (3) { ["date"]=> string(19) "2015-10-02 09:46:39" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/London" }
Output for 5.3.18
object(DateTime)#1 (3) { ["date"]=> string(19) "2015-10-02 08:46:38" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#1 (3) { ["date"]=> string(19) "2015-10-02 09:46:38" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/London" }