3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $d1 = new DateTime('now+02:00'); $d2 = new DateTime(); $d2->setTimezone($d1->getTimezone()); var_dump($d1, $d2, $d3);
based on UStKm
Output for 7.2.0
Notice: Undefined variable: d3 in /in/AE38E on line 6 object(DateTime)#1 (3) { ["date"]=> string(26) "2015-11-05 08:32:20.003883" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+02:00" } object(DateTime)#2 (3) { ["date"]=> string(26) "2015-11-05 09:32:20.003894" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+02:00" } NULL
Output for 7.1.10
Notice: Undefined variable: d3 in /in/AE38E on line 6 object(DateTime)#1 (3) { ["date"]=> string(26) "2015-11-05 08:32:20.003527" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+02:00" } object(DateTime)#2 (3) { ["date"]=> string(26) "2015-11-05 09:32:20.003533" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+02:00" } NULL
Output for 7.1.7
Notice: Undefined variable: d3 in /in/AE38E on line 6 object(DateTime)#1 (3) { ["date"]=> string(26) "2015-11-05 08:32:20.003798" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+02:00" } object(DateTime)#2 (3) { ["date"]=> string(26) "2015-11-05 09:32:20.003805" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+02:00" } NULL
Output for 7.1.6
Notice: Undefined variable: d3 in /in/AE38E on line 6 object(DateTime)#1 (3) { ["date"]=> string(26) "2015-11-05 08:32:20.012277" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+02:00" } object(DateTime)#2 (3) { ["date"]=> string(26) "2015-11-05 09:32:20.012287" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+02:00" } NULL
Output for 7.1.5
Notice: Undefined variable: d3 in /in/AE38E on line 6 object(DateTime)#1 (3) { ["date"]=> string(26) "2015-11-05 08:32:20.011401" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+02:00" } object(DateTime)#2 (3) { ["date"]=> string(26) "2015-11-05 09:32:20.011411" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+02:00" } NULL
Output for 7.1.0
Notice: Undefined variable: d3 in /in/AE38E on line 6 object(DateTime)#1 (3) { ["date"]=> string(26) "2015-11-05 08:32:20.003958" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+02:00" } object(DateTime)#2 (3) { ["date"]=> string(26) "2015-11-05 09:32:20.003962" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+02:00" } NULL
Output for 5.6.28, 7.0.20
Notice: Undefined variable: d3 in /in/AE38E on line 6 object(DateTime)#1 (3) { ["date"]=> string(26) "2015-11-05 08:32:20.000000" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+02:00" } object(DateTime)#2 (3) { ["date"]=> string(26) "2015-11-05 09:32:20.000000" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+02:00" } NULL
Output for 7.0.6
Notice: Undefined variable: d3 in /in/AE38E on line 6 object(DateTime)#1 (3) { ["date"]=> string(26) "2016-05-21 14:40:35.000000" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+02:00" } object(DateTime)#2 (3) { ["date"]=> string(26) "2016-05-21 14:40:35.000000" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+02:00" } NULL
Output for 7.0.5
Notice: Undefined variable: d3 in /in/AE38E on line 6 object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-03 10:30:47.000000" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+02:00" } object(DateTime)#2 (3) { ["date"]=> string(26) "2016-04-03 10:30:47.000000" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+02:00" } NULL
Output for 7.0.4
Notice: Undefined variable: d3 in /in/AE38E on line 6 object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-10 22:41:03.000000" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+02:00" } object(DateTime)#2 (3) { ["date"]=> string(26) "2016-03-10 23:41:03.000000" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+02:00" } NULL
Output for 7.0.3
Notice: Undefined variable: d3 in /in/AE38E on line 6 object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-19 00:19:54.000000" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+02:00" } object(DateTime)#2 (3) { ["date"]=> string(26) "2016-03-19 01:19:54.000000" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+02:00" } NULL
Output for 7.0.2
Notice: Undefined variable: d3 in /in/AE38E on line 6 object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-23 06:25:29.000000" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+02:00" } object(DateTime)#2 (3) { ["date"]=> string(26) "2016-03-23 07:25:29.000000" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+02:00" } NULL
Output for 7.0.1
Notice: Undefined variable: d3 in /in/AE38E on line 6 object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-24 09:25:35.000000" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+02:00" } object(DateTime)#2 (3) { ["date"]=> string(26) "2016-03-24 10:25:35.000000" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+02:00" } NULL
Output for 7.0.0
Notice: Undefined variable: d3 in /in/AE38E on line 6 object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-27 11:16:53.000000" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+02:00" } object(DateTime)#2 (3) { ["date"]=> string(26) "2016-03-27 11:16:53.000000" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+02:00" } NULL
Output for 5.6.21
Notice: Undefined variable: d3 in /in/AE38E on line 6 object(DateTime)#1 (3) { ["date"]=> string(26) "2016-05-02 17:27:05.000000" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+02:00" } object(DateTime)#2 (3) { ["date"]=> string(26) "2016-05-02 17:27:05.000000" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+02:00" } NULL
Output for 5.6.20
Notice: Undefined variable: d3 in /in/AE38E on line 6 object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-10 09:33:11.000000" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+02:00" } object(DateTime)#2 (3) { ["date"]=> string(26) "2016-04-10 09:33:11.000000" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+02:00" } NULL
Output for 5.6.19
Notice: Undefined variable: d3 in /in/AE38E on line 6 object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-08 06:50:42.000000" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+02:00" } object(DateTime)#2 (3) { ["date"]=> string(26) "2016-03-08 07:50:42.000000" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+02:00" } NULL
Output for 5.6.18
Notice: Undefined variable: d3 in /in/AE38E on line 6 object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-15 15:52:25.000000" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+02:00" } object(DateTime)#2 (3) { ["date"]=> string(26) "2016-03-15 16:52:25.000000" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+02:00" } NULL
Output for 5.6.17
Notice: Undefined variable: d3 in /in/AE38E on line 6 object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-20 03:31:12.000000" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+02:00" } object(DateTime)#2 (3) { ["date"]=> string(26) "2016-03-20 04:31:12.000000" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+02:00" } NULL
Output for 5.6.16
Notice: Undefined variable: d3 in /in/AE38E on line 6 object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-28 12:06:25.000000" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+02:00" } object(DateTime)#2 (3) { ["date"]=> string(26) "2016-03-28 12:06:25.000000" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+02:00" } NULL
Output for 5.6.15
Notice: Undefined variable: d3 in /in/AE38E on line 6 object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-29 12:55:36.000000" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+02:00" } object(DateTime)#2 (3) { ["date"]=> string(26) "2016-03-29 12:55:36.000000" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+02:00" } NULL
Output for 5.6.14
Notice: Undefined variable: d3 in /in/AE38E on line 6 object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-14 18:38:38.000000" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+02:00" } object(DateTime)#2 (3) { ["date"]=> string(26) "2016-04-14 18:38:38.000000" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+02:00" } NULL
Output for 5.6.13
Notice: Undefined variable: d3 in /in/AE38E on line 6 object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-15 19:21:00.000000" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+02:00" } object(DateTime)#2 (3) { ["date"]=> string(26) "2016-04-15 19:21:00.000000" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+02:00" } NULL
Output for 5.6.12
Notice: Undefined variable: d3 in /in/AE38E on line 6 object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-20 10:00:08.000000" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+02:00" } object(DateTime)#2 (3) { ["date"]=> string(26) "2016-04-20 10:00:08.000000" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+02:00" } NULL
Output for 5.6.11
Notice: Undefined variable: d3 in /in/AE38E on line 6 object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-24 16:16:23.000000" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+02:00" } object(DateTime)#2 (3) { ["date"]=> string(26) "2016-04-24 16:16:23.000000" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+02:00" } NULL
Output for 5.6.10
Notice: Undefined variable: d3 in /in/AE38E on line 6 object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-25 18:21:24.000000" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+02:00" } object(DateTime)#2 (3) { ["date"]=> string(26) "2016-04-25 18:21:24.000000" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+02:00" } NULL
Output for 5.6.9
Notice: Undefined variable: d3 in /in/AE38E on line 6 object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-27 23:51:00.000000" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+02:00" } object(DateTime)#2 (3) { ["date"]=> string(26) "2016-04-27 23:51:00.000000" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+02:00" } NULL
Output for 5.6.8
Notice: Undefined variable: d3 in /in/AE38E on line 6 object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-30 08:15:30.000000" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+02:00" } object(DateTime)#2 (3) { ["date"]=> string(26) "2016-04-30 08:15:30.000000" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+02:00" } NULL
Output for 5.5.35
Notice: Undefined variable: d3 in /in/AE38E on line 6 object(DateTime)#1 (3) { ["date"]=> string(26) "2016-05-23 04:10:05.000000" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+02:00" } object(DateTime)#2 (3) { ["date"]=> string(26) "2016-05-23 04:10:05.000000" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+02:00" } NULL
Output for 5.5.34
Notice: Undefined variable: d3 in /in/AE38E on line 6 object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-11 11:47:39.000000" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+02:00" } object(DateTime)#2 (3) { ["date"]=> string(26) "2016-04-11 11:47:39.000000" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+02:00" } NULL
Output for 5.5.33
Notice: Undefined variable: d3 in /in/AE38E on line 6 object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-09 09:56:43.000000" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+02:00" } object(DateTime)#2 (3) { ["date"]=> string(26) "2016-03-09 10:56:43.000000" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+02:00" } NULL
Output for 5.5.32
Notice: Undefined variable: d3 in /in/AE38E on line 6 object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-17 19:54:02.000000" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+02:00" } object(DateTime)#2 (3) { ["date"]=> string(26) "2016-03-17 20:54:02.000000" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+02:00" } NULL
Output for 5.5.31
Notice: Undefined variable: d3 in /in/AE38E on line 6 object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-21 06:42:54.000000" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+02:00" } object(DateTime)#2 (3) { ["date"]=> string(26) "2016-03-21 07:42:54.000000" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+02:00" } NULL
Output for 5.5.30
Notice: Undefined variable: d3 in /in/AE38E on line 6 object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-01 14:46:42.000000" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+02:00" } object(DateTime)#2 (3) { ["date"]=> string(26) "2016-04-01 14:46:42.000000" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+02:00" } NULL
Output for 5.5.29
Notice: Undefined variable: d3 in /in/AE38E on line 6 object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-17 09:35:00.000000" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+02:00" } object(DateTime)#2 (3) { ["date"]=> string(26) "2016-04-17 09:35:00.000000" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+02:00" } NULL
Output for 5.5.28
Notice: Undefined variable: d3 in /in/AE38E on line 6 object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-21 13:11:12.000000" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+02:00" } object(DateTime)#2 (3) { ["date"]=> string(26) "2016-04-21 13:11:12.000000" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+02:00" } NULL
Output for 5.5.27
Notice: Undefined variable: d3 in /in/AE38E on line 6 object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-22 14:45:44.000000" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+02:00" } object(DateTime)#2 (3) { ["date"]=> string(26) "2016-04-22 14:45:44.000000" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+02:00" } NULL
Output for 5.5.26
Notice: Undefined variable: d3 in /in/AE38E on line 6 object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-26 21:04:11.000000" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+02:00" } object(DateTime)#2 (3) { ["date"]=> string(26) "2016-04-26 21:04:11.000000" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+02:00" } NULL
Output for 5.5.25
Notice: Undefined variable: d3 in /in/AE38E on line 6 object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-29 04:32:18.000000" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+02:00" } object(DateTime)#2 (3) { ["date"]=> string(26) "2016-04-29 04:32:18.000000" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+02:00" } NULL
Output for 5.5.24
Notice: Undefined variable: d3 in /in/AE38E on line 6 object(DateTime)#1 (3) { ["date"]=> string(26) "2016-05-24 11:01:19.000000" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+02:00" } object(DateTime)#2 (3) { ["date"]=> string(26) "2016-05-24 11:01:19.000000" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+02:00" } NULL
Output for 5.4.45
Notice: Undefined variable: d3 in /in/AE38E on line 6 object(DateTime)#1 (3) { ["date"]=> string(26) "2016-01-30 01:03:54.000000" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+02:00" } object(DateTime)#2 (3) { ["date"]=> string(26) "2016-01-30 02:03:54.000000" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+02:00" } NULL
Output for 5.4.44
Notice: Undefined variable: d3 in /in/AE38E on line 6 object(DateTime)#1 (3) { ["date"]=> string(26) "2016-01-30 01:03:55.000000" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+02:00" } object(DateTime)#2 (3) { ["date"]=> string(26) "2016-01-30 02:03:55.000000" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+02:00" } NULL
Output for 5.4.42 - 5.4.43
Notice: Undefined variable: d3 in /in/AE38E on line 6 object(DateTime)#1 (3) { ["date"]=> string(26) "2016-01-30 01:03:56.000000" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+02:00" } object(DateTime)#2 (3) { ["date"]=> string(26) "2016-01-30 02:03:56.000000" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+02:00" } NULL
Output for 5.4.41
Notice: Undefined variable: d3 in /in/AE38E on line 6 object(DateTime)#1 (3) { ["date"]=> string(26) "2016-01-30 01:03:57.000000" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+02:00" } object(DateTime)#2 (3) { ["date"]=> string(26) "2016-01-30 02:03:57.000000" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+02:00" } NULL
Output for 5.4.39 - 5.4.40
Notice: Undefined variable: d3 in /in/AE38E on line 6 object(DateTime)#1 (3) { ["date"]=> string(26) "2016-01-30 01:03:58.000000" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+02:00" } object(DateTime)#2 (3) { ["date"]=> string(26) "2016-01-30 02:03:58.000000" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+02:00" } NULL
Output for 5.4.37 - 5.4.38
Notice: Undefined variable: d3 in /in/AE38E on line 6 object(DateTime)#1 (3) { ["date"]=> string(26) "2016-01-30 01:03:59.000000" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+02:00" } object(DateTime)#2 (3) { ["date"]=> string(26) "2016-01-30 02:03:59.000000" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+02:00" } NULL
Output for 5.4.35 - 5.4.36
Notice: Undefined variable: d3 in /in/AE38E on line 6 object(DateTime)#1 (3) { ["date"]=> string(26) "2016-01-30 01:04:00.000000" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+02:00" } object(DateTime)#2 (3) { ["date"]=> string(26) "2016-01-30 02:04:00.000000" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+02:00" } NULL
Output for 5.4.34
Notice: Undefined variable: d3 in /in/AE38E on line 6 object(DateTime)#1 (3) { ["date"]=> string(26) "2016-01-30 01:04:01.000000" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+02:00" } object(DateTime)#2 (3) { ["date"]=> string(26) "2016-01-30 02:04:01.000000" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+02:00" } NULL
Output for 5.4.30 - 5.4.32
Notice: Undefined variable: d3 in /in/AE38E on line 6 object(DateTime)#1 (3) { ["date"]=> string(26) "2016-01-30 01:04:02.000000" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+02:00" } object(DateTime)#2 (3) { ["date"]=> string(26) "2016-01-30 02:04:02.000000" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+02:00" } NULL
Output for 5.4.26 - 5.4.29
Notice: Undefined variable: d3 in /in/AE38E on line 6 object(DateTime)#1 (3) { ["date"]=> string(19) "2016-01-30 01:04:03" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+02:00" } object(DateTime)#2 (3) { ["date"]=> string(19) "2016-01-30 02:04:03" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+02:00" } NULL
Output for 5.4.23 - 5.4.25
Warning: DateTime::setTimezone(): Can only do this for zones with ID for now in /in/AE38E on line 4 Notice: Undefined variable: d3 in /in/AE38E on line 6 object(DateTime)#1 (3) { ["date"]=> string(19) "2016-01-30 01:04:04" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+02:00" } object(DateTime)#2 (3) { ["date"]=> string(19) "2016-01-30 01:04:04" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } NULL
Output for 5.3.28, 5.4.20 - 5.4.22
Warning: DateTime::setTimezone(): Can only do this for zones with ID for now in /in/AE38E on line 4 Notice: Undefined variable: d3 in /in/AE38E on line 6 object(DateTime)#1 (3) { ["date"]=> string(19) "2016-01-30 01:04:05" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+02:00" } object(DateTime)#2 (3) { ["date"]=> string(19) "2016-01-30 01:04:05" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } NULL
Output for 5.3.27, 5.4.18 - 5.4.19
Warning: DateTime::setTimezone(): Can only do this for zones with ID for now in /in/AE38E on line 4 Notice: Undefined variable: d3 in /in/AE38E on line 6 object(DateTime)#1 (3) { ["date"]=> string(19) "2016-01-30 01:04:06" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+02:00" } object(DateTime)#2 (3) { ["date"]=> string(19) "2016-01-30 01:04:06" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } NULL
Output for 5.3.24 - 5.3.26, 5.4.15 - 5.4.17
Warning: DateTime::setTimezone(): Can only do this for zones with ID for now in /in/AE38E on line 4 Notice: Undefined variable: d3 in /in/AE38E on line 6 object(DateTime)#1 (3) { ["date"]=> string(19) "2016-01-30 01:04:07" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+02:00" } object(DateTime)#2 (3) { ["date"]=> string(19) "2016-01-30 01:04:07" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } NULL
Output for 5.3.21 - 5.3.23, 5.4.11 - 5.4.14
Warning: DateTime::setTimezone(): Can only do this for zones with ID for now in /in/AE38E on line 4 Notice: Undefined variable: d3 in /in/AE38E on line 6 object(DateTime)#1 (3) { ["date"]=> string(19) "2016-01-30 01:04:08" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+02:00" } object(DateTime)#2 (3) { ["date"]=> string(19) "2016-01-30 01:04:08" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } NULL
Output for 5.3.19 - 5.3.20, 5.4.9 - 5.4.10
Warning: DateTime::setTimezone(): Can only do this for zones with ID for now in /in/AE38E on line 4 Notice: Undefined variable: d3 in /in/AE38E on line 6 object(DateTime)#1 (3) { ["date"]=> string(19) "2016-01-30 01:04:09" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+02:00" } object(DateTime)#2 (3) { ["date"]=> string(19) "2016-01-30 01:04:09" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } NULL
Output for 5.3.29
Warning: DateTime::setTimezone(): Can only do this for zones with ID for now in /in/AE38E on line 4 Notice: Undefined variable: d3 in /in/AE38E on line 6 object(DateTime)#1 (3) { ["date"]=> string(19) "2016-01-30 01:04:02" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+02:00" } object(DateTime)#2 (3) { ["date"]=> string(19) "2016-01-30 01:04:02" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } NULL