3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $eet = new DateTimeZone('UTC'); $msk = new DateTimeZone('Europe/Moscow'); $d = (new DateTime('now', $msk))->setTimezone($eet); $d1 = clone $d; $d->setTimezone($msk); var_dump($d, $d1);
based on JW2Ot
Output for 7.2.0
object(DateTime)#3 (3) { ["date"]=> string(26) "2015-11-06 17:50:16.003171" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/Moscow" } object(DateTime)#4 (3) { ["date"]=> string(26) "2015-11-06 14:50:16.003171" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 7.1.10
object(DateTime)#3 (3) { ["date"]=> string(26) "2015-11-06 17:50:16.003132" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/Moscow" } object(DateTime)#4 (3) { ["date"]=> string(26) "2015-11-06 14:50:16.003132" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 7.1.7
object(DateTime)#3 (3) { ["date"]=> string(26) "2015-11-06 17:50:16.003519" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/Moscow" } object(DateTime)#4 (3) { ["date"]=> string(26) "2015-11-06 14:50:16.003519" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 7.1.6
object(DateTime)#3 (3) { ["date"]=> string(26) "2015-11-06 17:50:16.011425" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/Moscow" } object(DateTime)#4 (3) { ["date"]=> string(26) "2015-11-06 14:50:16.011425" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 7.1.5
object(DateTime)#3 (3) { ["date"]=> string(26) "2015-11-06 17:50:16.009541" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/Moscow" } object(DateTime)#4 (3) { ["date"]=> string(26) "2015-11-06 14:50:16.009541" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 7.1.0
object(DateTime)#3 (3) { ["date"]=> string(26) "2015-11-06 17:50:16.004068" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/Moscow" } object(DateTime)#4 (3) { ["date"]=> string(26) "2015-11-06 14:50:16.004068" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 5.6.28, 7.0.20
object(DateTime)#3 (3) { ["date"]=> string(26) "2015-11-06 17:50:16.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/Moscow" } object(DateTime)#4 (3) { ["date"]=> string(26) "2015-11-06 14:50:16.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 7.0.6
object(DateTime)#3 (3) { ["date"]=> string(26) "2016-05-03 19:27:06.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/Moscow" } object(DateTime)#4 (3) { ["date"]=> string(26) "2016-05-03 16:27:06.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 7.0.5
object(DateTime)#3 (3) { ["date"]=> string(26) "2016-04-03 07:52:31.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/Moscow" } object(DateTime)#4 (3) { ["date"]=> string(26) "2016-04-03 04:52:31.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 7.0.4
object(DateTime)#3 (3) { ["date"]=> string(26) "2016-03-10 20:39:07.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/Moscow" } object(DateTime)#4 (3) { ["date"]=> string(26) "2016-03-10 17:39:07.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 7.0.3
object(DateTime)#3 (3) { ["date"]=> string(26) "2016-03-18 21:47:29.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/Moscow" } object(DateTime)#4 (3) { ["date"]=> string(26) "2016-03-18 18:47:29.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 7.0.2
object(DateTime)#3 (3) { ["date"]=> string(26) "2016-03-23 03:54:56.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/Moscow" } object(DateTime)#4 (3) { ["date"]=> string(26) "2016-03-23 00:54:56.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 7.0.1
object(DateTime)#3 (3) { ["date"]=> string(26) "2016-03-24 07:34:40.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/Moscow" } object(DateTime)#4 (3) { ["date"]=> string(26) "2016-03-24 04:34:40.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 7.0.0
object(DateTime)#3 (3) { ["date"]=> string(26) "2016-03-27 08:30:55.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/Moscow" } object(DateTime)#4 (3) { ["date"]=> string(26) "2016-03-27 05:30:55.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 5.6.21
object(DateTime)#3 (3) { ["date"]=> string(26) "2016-05-02 14:36:26.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/Moscow" } object(DateTime)#4 (3) { ["date"]=> string(26) "2016-05-02 11:36:26.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 5.6.20
object(DateTime)#3 (3) { ["date"]=> string(26) "2016-04-10 06:51:51.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/Moscow" } object(DateTime)#4 (3) { ["date"]=> string(26) "2016-04-10 03:51:51.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 5.6.19
object(DateTime)#3 (3) { ["date"]=> string(26) "2016-03-08 04:50:28.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/Moscow" } object(DateTime)#4 (3) { ["date"]=> string(26) "2016-03-08 01:50:28.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 5.6.18
object(DateTime)#3 (3) { ["date"]=> string(26) "2016-03-15 13:33:44.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/Moscow" } object(DateTime)#4 (3) { ["date"]=> string(26) "2016-03-15 10:33:44.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 5.6.17
object(DateTime)#3 (3) { ["date"]=> string(26) "2016-03-20 01:13:23.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/Moscow" } object(DateTime)#4 (3) { ["date"]=> string(26) "2016-03-19 22:13:23.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 5.6.16
object(DateTime)#3 (3) { ["date"]=> string(26) "2016-03-28 09:18:13.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/Moscow" } object(DateTime)#4 (3) { ["date"]=> string(26) "2016-03-28 06:18:13.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 5.6.15
object(DateTime)#3 (3) { ["date"]=> string(26) "2016-03-29 10:08:55.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/Moscow" } object(DateTime)#4 (3) { ["date"]=> string(26) "2016-03-29 07:08:55.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 5.6.14
object(DateTime)#3 (3) { ["date"]=> string(26) "2016-04-02 12:00:03.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/Moscow" } object(DateTime)#4 (3) { ["date"]=> string(26) "2016-04-02 09:00:03.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 5.6.13
object(DateTime)#3 (3) { ["date"]=> string(26) "2016-04-15 16:24:10.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/Moscow" } object(DateTime)#4 (3) { ["date"]=> string(26) "2016-04-15 13:24:10.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 5.6.12
object(DateTime)#3 (3) { ["date"]=> string(26) "2016-04-20 06:53:12.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/Moscow" } object(DateTime)#4 (3) { ["date"]=> string(26) "2016-04-20 03:53:12.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 5.6.11
object(DateTime)#3 (3) { ["date"]=> string(26) "2016-04-24 13:15:30.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/Moscow" } object(DateTime)#4 (3) { ["date"]=> string(26) "2016-04-24 10:15:30.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 5.6.10
object(DateTime)#3 (3) { ["date"]=> string(26) "2016-04-25 15:18:32.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/Moscow" } object(DateTime)#4 (3) { ["date"]=> string(26) "2016-04-25 12:18:32.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 5.6.9
object(DateTime)#3 (3) { ["date"]=> string(26) "2016-04-27 20:28:38.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/Moscow" } object(DateTime)#4 (3) { ["date"]=> string(26) "2016-04-27 17:28:38.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 5.6.8
object(DateTime)#3 (3) { ["date"]=> string(26) "2016-04-30 05:20:49.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/Moscow" } object(DateTime)#4 (3) { ["date"]=> string(26) "2016-04-30 02:20:49.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 5.5.35
object(DateTime)#3 (3) { ["date"]=> string(26) "2016-05-22 21:43:41.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/Moscow" } object(DateTime)#4 (3) { ["date"]=> string(26) "2016-05-22 18:43:41.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 5.5.34
object(DateTime)#3 (3) { ["date"]=> string(26) "2016-04-11 09:03:40.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/Moscow" } object(DateTime)#4 (3) { ["date"]=> string(26) "2016-04-11 06:03:40.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 5.5.33
object(DateTime)#3 (3) { ["date"]=> string(26) "2016-03-09 07:33:25.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/Moscow" } object(DateTime)#4 (3) { ["date"]=> string(26) "2016-03-09 04:33:25.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 5.5.32
object(DateTime)#3 (3) { ["date"]=> string(26) "2016-03-17 17:28:58.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/Moscow" } object(DateTime)#4 (3) { ["date"]=> string(26) "2016-03-17 14:28:58.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 5.5.31
object(DateTime)#3 (3) { ["date"]=> string(26) "2016-03-21 04:15:07.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/Moscow" } object(DateTime)#4 (3) { ["date"]=> string(26) "2016-03-21 01:15:07.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 5.5.30
object(DateTime)#3 (3) { ["date"]=> string(26) "2016-04-01 12:02:30.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/Moscow" } object(DateTime)#4 (3) { ["date"]=> string(26) "2016-04-01 09:02:30.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 5.5.29
object(DateTime)#3 (3) { ["date"]=> string(26) "2016-04-17 06:47:25.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/Moscow" } object(DateTime)#4 (3) { ["date"]=> string(26) "2016-04-17 03:47:25.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 5.5.28
object(DateTime)#3 (3) { ["date"]=> string(26) "2016-04-21 10:07:06.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/Moscow" } object(DateTime)#4 (3) { ["date"]=> string(26) "2016-04-21 07:07:06.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 5.5.27
object(DateTime)#3 (3) { ["date"]=> string(26) "2016-04-22 11:53:43.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/Moscow" } object(DateTime)#4 (3) { ["date"]=> string(26) "2016-04-22 08:53:43.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 5.5.26
object(DateTime)#3 (3) { ["date"]=> string(26) "2016-04-26 18:01:16.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/Moscow" } object(DateTime)#4 (3) { ["date"]=> string(26) "2016-04-26 15:01:16.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 5.5.25
object(DateTime)#3 (3) { ["date"]=> string(26) "2016-04-29 00:53:52.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/Moscow" } object(DateTime)#4 (3) { ["date"]=> string(26) "2016-04-28 21:53:52.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 5.5.24
object(DateTime)#3 (3) { ["date"]=> string(26) "2016-05-24 07:27:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/Moscow" } object(DateTime)#4 (3) { ["date"]=> string(26) "2016-05-24 04:27:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 5.4.44 - 5.4.45
object(DateTime)#3 (3) { ["date"]=> string(26) "2015-11-06 17:50:41.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/Moscow" } object(DateTime)#4 (3) { ["date"]=> string(26) "2015-11-06 14:50:41.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 5.4.41 - 5.4.43
object(DateTime)#3 (3) { ["date"]=> string(26) "2015-11-06 17:50:42.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/Moscow" } object(DateTime)#4 (3) { ["date"]=> string(26) "2015-11-06 14:50:42.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 5.4.39 - 5.4.40
object(DateTime)#3 (3) { ["date"]=> string(26) "2015-11-06 17:50:43.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/Moscow" } object(DateTime)#4 (3) { ["date"]=> string(26) "2015-11-06 14:50:43.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 5.4.36 - 5.4.38
object(DateTime)#3 (3) { ["date"]=> string(26) "2015-11-06 17:50:44.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/Moscow" } object(DateTime)#4 (3) { ["date"]=> string(26) "2015-11-06 14:50:44.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 5.4.34 - 5.4.35
object(DateTime)#3 (3) { ["date"]=> string(26) "2015-11-06 17:50:45.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/Moscow" } object(DateTime)#4 (3) { ["date"]=> string(26) "2015-11-06 14:50:45.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 5.4.32
object(DateTime)#3 (3) { ["date"]=> string(26) "2015-11-06 18:50:45.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/Moscow" } object(DateTime)#4 (3) { ["date"]=> string(26) "2015-11-06 14:50:45.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 5.4.30 - 5.4.31
object(DateTime)#3 (3) { ["date"]=> string(26) "2015-11-06 18:50:46.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/Moscow" } object(DateTime)#4 (3) { ["date"]=> string(26) "2015-11-06 14:50:46.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 5.4.28 - 5.4.29
object(DateTime)#3 (3) { ["date"]=> string(19) "2015-11-06 18:50:47" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/Moscow" } object(DateTime)#4 (3) { ["date"]=> string(19) "2015-11-06 14:50:47" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 5.4.25 - 5.4.27
object(DateTime)#3 (3) { ["date"]=> string(19) "2015-11-06 18:50:48" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/Moscow" } object(DateTime)#4 (3) { ["date"]=> string(19) "2015-11-06 14:50:48" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 5.4.22 - 5.4.24
object(DateTime)#3 (3) { ["date"]=> string(19) "2015-11-06 18:50:49" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/Moscow" } object(DateTime)#4 (3) { ["date"]=> string(19) "2015-11-06 14:50:49" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 5.4.20 - 5.4.21
object(DateTime)#3 (3) { ["date"]=> string(19) "2015-11-06 18:50:50" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/Moscow" } object(DateTime)#4 (3) { ["date"]=> string(19) "2015-11-06 14:50:50" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 5.4.18 - 5.4.19
object(DateTime)#3 (3) { ["date"]=> string(19) "2015-11-06 18:50:51" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/Moscow" } object(DateTime)#4 (3) { ["date"]=> string(19) "2015-11-06 14:50:51" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 5.4.16 - 5.4.17
object(DateTime)#3 (3) { ["date"]=> string(19) "2015-11-06 18:50:52" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/Moscow" } object(DateTime)#4 (3) { ["date"]=> string(19) "2015-11-06 14:50:52" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 5.4.13 - 5.4.15
object(DateTime)#3 (3) { ["date"]=> string(19) "2015-11-06 18:50:53" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/Moscow" } object(DateTime)#4 (3) { ["date"]=> string(19) "2015-11-06 14:50:53" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 5.4.12
object(DateTime)#3 (3) { ["date"]=> string(19) "2015-11-06 18:50:54" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/Moscow" } object(DateTime)#4 (3) { ["date"]=> string(19) "2015-11-06 14:50:54" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 5.4.9 - 5.4.11
object(DateTime)#3 (3) { ["date"]=> string(19) "2015-11-06 18:50:55" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/Moscow" } object(DateTime)#4 (3) { ["date"]=> string(19) "2015-11-06 14:50:55" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 5.4.7 - 5.4.8
object(DateTime)#3 (3) { ["date"]=> string(19) "2015-11-06 18:50:56" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/Moscow" } object(DateTime)#4 (3) { ["date"]=> string(19) "2015-11-06 14:50:56" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 5.4.6
object(DateTime)#3 (3) { ["date"]=> string(19) "2015-11-06 18:50:57" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/Moscow" } object(DateTime)#4 (3) { ["date"]=> string(19) "2015-11-06 14:50:57" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 5.4.4 - 5.4.5
object(DateTime)#3 (3) { ["date"]=> string(19) "2015-11-06 18:50:58" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/Moscow" } object(DateTime)#4 (3) { ["date"]=> string(19) "2015-11-06 14:50:58" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 5.4.2 - 5.4.3
object(DateTime)#3 (3) { ["date"]=> string(19) "2015-11-06 18:50:59" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/Moscow" } object(DateTime)#4 (3) { ["date"]=> string(19) "2015-11-06 14:50:59" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 5.4.0 - 5.4.1
object(DateTime)#3 (3) { ["date"]=> string(19) "2015-11-06 18:51:00" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/Moscow" } object(DateTime)#4 (3) { ["date"]=> string(19) "2015-11-06 14:51:00" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 5.3.19 - 5.3.29
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /in/af7dP on line 5
Process exited with code 255.