3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $baseDate = new \DateTime(); $targetDate = new \DateTime('tomorrow'); var_dump(compact(['baseDate', 'targetDate']));
based on QFfHU
Output for 7.2.0
array(2) { ["baseDate"]=> object(DateTime)#1 (3) { ["date"]=> string(26) "2015-10-07 17:56:17.002798" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ["targetDate"]=> object(DateTime)#2 (3) { ["date"]=> string(26) "2015-10-08 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } }
Output for 7.1.10
array(2) { ["baseDate"]=> object(DateTime)#1 (3) { ["date"]=> string(26) "2015-10-07 17:56:17.005823" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ["targetDate"]=> object(DateTime)#2 (3) { ["date"]=> string(26) "2015-10-08 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } }
Output for 7.1.7
array(2) { ["baseDate"]=> object(DateTime)#1 (3) { ["date"]=> string(26) "2015-10-07 17:56:17.003578" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ["targetDate"]=> object(DateTime)#2 (3) { ["date"]=> string(26) "2015-10-08 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } }
Output for 7.1.6
array(2) { ["baseDate"]=> object(DateTime)#1 (3) { ["date"]=> string(26) "2015-10-07 17:56:17.012408" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ["targetDate"]=> object(DateTime)#2 (3) { ["date"]=> string(26) "2015-10-08 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } }
Output for 7.1.5
array(2) { ["baseDate"]=> object(DateTime)#1 (3) { ["date"]=> string(26) "2015-10-07 17:56:17.011402" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ["targetDate"]=> object(DateTime)#2 (3) { ["date"]=> string(26) "2015-10-08 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } }
Output for 7.1.0
array(2) { ["baseDate"]=> object(DateTime)#1 (3) { ["date"]=> string(26) "2015-10-07 17:56:17.003988" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ["targetDate"]=> object(DateTime)#2 (3) { ["date"]=> string(26) "2015-10-08 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } }
Output for 5.6.28, 7.0.20
array(2) { ["baseDate"]=> object(DateTime)#1 (3) { ["date"]=> string(26) "2015-10-07 17:56:17.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ["targetDate"]=> object(DateTime)#2 (3) { ["date"]=> string(26) "2015-10-08 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } }
Output for 7.0.6
array(2) { ["baseDate"]=> object(DateTime)#1 (3) { ["date"]=> string(26) "2016-05-03 17:47:27.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ["targetDate"]=> object(DateTime)#2 (3) { ["date"]=> string(26) "2016-05-04 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } }
Output for 7.0.5
array(2) { ["baseDate"]=> object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-03 06:15:18.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ["targetDate"]=> object(DateTime)#2 (3) { ["date"]=> string(26) "2016-04-04 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } }
Output for 7.0.4
array(2) { ["baseDate"]=> object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-10 17:57:47.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ["targetDate"]=> object(DateTime)#2 (3) { ["date"]=> string(26) "2016-03-11 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } }
Output for 7.0.3
array(2) { ["baseDate"]=> object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-18 18:47:08.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ["targetDate"]=> object(DateTime)#2 (3) { ["date"]=> string(26) "2016-03-19 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } }
Output for 7.0.2
array(2) { ["baseDate"]=> object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-23 01:10:55.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ["targetDate"]=> object(DateTime)#2 (3) { ["date"]=> string(26) "2016-03-24 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } }
Output for 7.0.1
array(2) { ["baseDate"]=> object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-24 04:56:04.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ["targetDate"]=> object(DateTime)#2 (3) { ["date"]=> string(26) "2016-03-25 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } }
Output for 7.0.0
array(2) { ["baseDate"]=> object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-27 06:52:48.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ["targetDate"]=> object(DateTime)#2 (3) { ["date"]=> string(26) "2016-03-28 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } }
Output for 5.6.21
array(2) { ["baseDate"]=> object(DateTime)#1 (3) { ["date"]=> string(26) "2016-05-02 12:57:49.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ["targetDate"]=> object(DateTime)#2 (3) { ["date"]=> string(26) "2016-05-03 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } }
Output for 5.6.20
array(2) { ["baseDate"]=> object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-10 05:14:24.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ["targetDate"]=> object(DateTime)#2 (3) { ["date"]=> string(26) "2016-04-11 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } }
Output for 5.6.19
array(2) { ["baseDate"]=> object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-08 02:09:47.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ["targetDate"]=> object(DateTime)#2 (3) { ["date"]=> string(26) "2016-03-09 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } }
Output for 5.6.18
array(2) { ["baseDate"]=> object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-15 10:45:10.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ["targetDate"]=> object(DateTime)#2 (3) { ["date"]=> string(26) "2016-03-16 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } }
Output for 5.6.17
array(2) { ["baseDate"]=> object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-19 22:32:14.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ["targetDate"]=> object(DateTime)#2 (3) { ["date"]=> string(26) "2016-03-20 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } }
Output for 5.6.16
array(2) { ["baseDate"]=> object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-28 07:40:03.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ["targetDate"]=> object(DateTime)#2 (3) { ["date"]=> string(26) "2016-03-29 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } }
Output for 5.6.15
array(2) { ["baseDate"]=> object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-29 08:30:59.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ["targetDate"]=> object(DateTime)#2 (3) { ["date"]=> string(26) "2016-03-30 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } }
Output for 5.6.14
array(2) { ["baseDate"]=> object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-02 10:24:49.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ["targetDate"]=> object(DateTime)#2 (3) { ["date"]=> string(26) "2016-04-03 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } }
Output for 5.6.13
array(2) { ["baseDate"]=> object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-15 14:44:52.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ["targetDate"]=> object(DateTime)#2 (3) { ["date"]=> string(26) "2016-04-16 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } }
Output for 5.6.12
array(2) { ["baseDate"]=> object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-20 05:13:04.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ["targetDate"]=> object(DateTime)#2 (3) { ["date"]=> string(26) "2016-04-21 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } }
Output for 5.6.11
array(2) { ["baseDate"]=> object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-24 11:28:38.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ["targetDate"]=> object(DateTime)#2 (3) { ["date"]=> string(26) "2016-04-25 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } }
Output for 5.6.10
array(2) { ["baseDate"]=> object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-25 13:38:20.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ["targetDate"]=> object(DateTime)#2 (3) { ["date"]=> string(26) "2016-04-26 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } }
Output for 5.6.9
array(2) { ["baseDate"]=> object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-27 18:47:56.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ["targetDate"]=> object(DateTime)#2 (3) { ["date"]=> string(26) "2016-04-28 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } }
Output for 5.6.8
array(2) { ["baseDate"]=> object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-30 03:40:06.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ["targetDate"]=> object(DateTime)#2 (3) { ["date"]=> string(26) "2016-05-01 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } }
Output for 5.5.35
array(2) { ["baseDate"]=> object(DateTime)#1 (3) { ["date"]=> string(26) "2016-05-23 14:03:43.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ["targetDate"]=> object(DateTime)#2 (3) { ["date"]=> string(26) "2016-05-24 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } }
Output for 5.5.34
array(2) { ["baseDate"]=> object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-11 07:26:58.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ["targetDate"]=> object(DateTime)#2 (3) { ["date"]=> string(26) "2016-04-12 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } }
Output for 5.5.33
array(2) { ["baseDate"]=> object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-09 04:45:55.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ["targetDate"]=> object(DateTime)#2 (3) { ["date"]=> string(26) "2016-03-10 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } }
Output for 5.5.32
array(2) { ["baseDate"]=> object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-17 14:28:40.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ["targetDate"]=> object(DateTime)#2 (3) { ["date"]=> string(26) "2016-03-18 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } }
Output for 5.5.31
array(2) { ["baseDate"]=> object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-21 01:30:20.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ["targetDate"]=> object(DateTime)#2 (3) { ["date"]=> string(26) "2016-03-22 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } }
Output for 5.5.30
array(2) { ["baseDate"]=> object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-01 10:24:29.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ["targetDate"]=> object(DateTime)#2 (3) { ["date"]=> string(26) "2016-04-02 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } }
Output for 5.5.29
array(2) { ["baseDate"]=> object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-17 05:09:04.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ["targetDate"]=> object(DateTime)#2 (3) { ["date"]=> string(26) "2016-04-18 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } }
Output for 5.5.28
array(2) { ["baseDate"]=> object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-21 08:25:45.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ["targetDate"]=> object(DateTime)#2 (3) { ["date"]=> string(26) "2016-04-22 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } }
Output for 5.5.27
array(2) { ["baseDate"]=> object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-22 10:15:13.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ["targetDate"]=> object(DateTime)#2 (3) { ["date"]=> string(26) "2016-04-23 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } }
Output for 5.5.26
array(2) { ["baseDate"]=> object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-26 16:21:01.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ["targetDate"]=> object(DateTime)#2 (3) { ["date"]=> string(26) "2016-04-27 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } }
Output for 5.5.25
array(2) { ["baseDate"]=> object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-28 23:12:08.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ["targetDate"]=> object(DateTime)#2 (3) { ["date"]=> string(26) "2016-04-29 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } }
Output for 5.5.24
array(2) { ["baseDate"]=> object(DateTime)#1 (3) { ["date"]=> string(26) "2016-05-24 14:45:48.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ["targetDate"]=> object(DateTime)#2 (3) { ["date"]=> string(26) "2016-05-25 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } }
Output for 5.4.44 - 5.4.45
array(2) { ["baseDate"]=> object(DateTime)#1 (3) { ["date"]=> string(26) "2015-10-07 17:56:26.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ["targetDate"]=> object(DateTime)#2 (3) { ["date"]=> string(26) "2015-10-08 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } }
Output for 5.4.36 - 5.4.43
array(2) { ["baseDate"]=> object(DateTime)#1 (3) { ["date"]=> string(26) "2015-10-07 17:56:27.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ["targetDate"]=> object(DateTime)#2 (3) { ["date"]=> string(26) "2015-10-08 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } }
Output for 5.4.30 - 5.4.35
array(2) { ["baseDate"]=> object(DateTime)#1 (3) { ["date"]=> string(26) "2015-10-07 17:56:28.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ["targetDate"]=> object(DateTime)#2 (3) { ["date"]=> string(26) "2015-10-08 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } }
Output for 5.4.28 - 5.4.29
array(2) { ["baseDate"]=> object(DateTime)#1 (3) { ["date"]=> string(19) "2015-10-07 17:56:28" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ["targetDate"]=> object(DateTime)#2 (3) { ["date"]=> string(19) "2015-10-08 00:00:00" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } }
Output for 5.4.20 - 5.4.27
array(2) { ["baseDate"]=> object(DateTime)#1 (3) { ["date"]=> string(19) "2015-10-07 17:56:29" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ["targetDate"]=> object(DateTime)#2 (3) { ["date"]=> string(19) "2015-10-08 00:00:00" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } }
Output for 5.4.12 - 5.4.19
array(2) { ["baseDate"]=> object(DateTime)#1 (3) { ["date"]=> string(19) "2015-10-07 17:56:30" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ["targetDate"]=> object(DateTime)#2 (3) { ["date"]=> string(19) "2015-10-08 00:00:00" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } }
Output for 5.4.8 - 5.4.11
array(2) { ["baseDate"]=> object(DateTime)#1 (3) { ["date"]=> string(19) "2015-10-07 17:56:31" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ["targetDate"]=> object(DateTime)#2 (3) { ["date"]=> string(19) "2015-10-08 00:00:00" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } }
Output for 5.4.7
array(2) { ["baseDate"]=> object(DateTime)#1 (3) { ["date"]=> string(19) "2015-10-27 01:17:54" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ["targetDate"]=> object(DateTime)#2 (3) { ["date"]=> string(19) "2015-10-28 00:00:00" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } }
Output for 5.4.6
array(2) { ["baseDate"]=> object(DateTime)#1 (3) { ["date"]=> string(19) "2015-10-27 02:31:13" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ["targetDate"]=> object(DateTime)#2 (3) { ["date"]=> string(19) "2015-10-28 00:00:00" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } }
Output for 5.4.5
array(2) { ["baseDate"]=> object(DateTime)#1 (3) { ["date"]=> string(19) "2015-10-27 04:00:45" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ["targetDate"]=> object(DateTime)#2 (3) { ["date"]=> string(19) "2015-10-28 00:00:00" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } }
Output for 5.4.4
array(2) { ["baseDate"]=> object(DateTime)#1 (3) { ["date"]=> string(19) "2015-10-27 05:27:33" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ["targetDate"]=> object(DateTime)#2 (3) { ["date"]=> string(19) "2015-10-28 00:00:00" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } }
Output for 5.4.3
array(2) { ["baseDate"]=> object(DateTime)#1 (3) { ["date"]=> string(19) "2015-10-27 07:06:12" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ["targetDate"]=> object(DateTime)#2 (3) { ["date"]=> string(19) "2015-10-28 00:00:00" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } }
Output for 5.4.2
array(2) { ["baseDate"]=> object(DateTime)#1 (3) { ["date"]=> string(19) "2015-10-27 08:48:45" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ["targetDate"]=> object(DateTime)#2 (3) { ["date"]=> string(19) "2015-10-28 00:00:00" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } }
Output for 5.4.1
array(2) { ["baseDate"]=> object(DateTime)#1 (3) { ["date"]=> string(19) "2015-10-27 10:37:23" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ["targetDate"]=> object(DateTime)#2 (3) { ["date"]=> string(19) "2015-10-28 00:00:00" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } }
Output for 5.3.18 - 5.3.29
Parse error: syntax error, unexpected '[', expecting ')' in /in/OdrL0 on line 5
Process exited with code 255.