3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo ini_get('date.timezone').PHP_EOL; $nowUtc = new \DateTime( 'now', new \DateTimeZone( 'UTC' ) ); echo '$nowUtc'.PHP_EOL; var_dump($nowUtc); $nowUtc = new \DateTime( 'now', new \DateTimeZone( 'UTC' ) ); echo '$nowUtc->format(\'Y-m-d H:i:s\')'.PHP_EOL; var_dump($nowUtc->format('Y-m-d H:i:s')); $nowUtc->setTimezone( new \DateTimeZone( 'Australia/Sydney' ) ); echo '$nowUtc->setTimezone( new \DateTimeZone( \'Australia/Sydney\' ) )'.PHP_EOL; var_dump($nowUtc); echo '$nowUtc->format(\'Y-m-d H:i:s\')'.PHP_EOL; var_dump($nowUtc->format('Y-m-d H:i:s')); var_dump($nowUtc->format('Y-m-d H:i:s')); var_dump($nowUtc->format('Y-m-d H:i:s'));
based on RjQ5s
Output for 7.2.0
Europe/Amsterdam $nowUtc object(DateTime)#1 (3) { ["date"]=> string(26) "2016-01-18 12:54:24.121165" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } $nowUtc->format('Y-m-d H:i:s') string(19) "2016-01-18 12:54:24" $nowUtc->setTimezone( new \DateTimeZone( 'Australia/Sydney' ) ) object(DateTime)#2 (3) { ["date"]=> string(26) "2016-01-18 23:54:24.121241" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Australia/Sydney" } $nowUtc->format('Y-m-d H:i:s') string(19) "2016-01-18 23:54:24" string(19) "2016-01-18 23:54:24" string(19) "2016-01-18 23:54:24"
Output for 7.1.10
Europe/Amsterdam $nowUtc object(DateTime)#1 (3) { ["date"]=> string(26) "2016-01-18 12:54:24.005004" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } $nowUtc->format('Y-m-d H:i:s') string(19) "2016-01-18 12:54:24" $nowUtc->setTimezone( new \DateTimeZone( 'Australia/Sydney' ) ) object(DateTime)#2 (3) { ["date"]=> string(26) "2016-01-18 23:54:24.005042" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Australia/Sydney" } $nowUtc->format('Y-m-d H:i:s') string(19) "2016-01-18 23:54:24" string(19) "2016-01-18 23:54:24" string(19) "2016-01-18 23:54:24"
Output for 7.1.7
Europe/Amsterdam $nowUtc object(DateTime)#1 (3) { ["date"]=> string(26) "2016-01-18 12:54:24.002879" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } $nowUtc->format('Y-m-d H:i:s') string(19) "2016-01-18 12:54:24" $nowUtc->setTimezone( new \DateTimeZone( 'Australia/Sydney' ) ) object(DateTime)#2 (3) { ["date"]=> string(26) "2016-01-18 23:54:24.002902" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Australia/Sydney" } $nowUtc->format('Y-m-d H:i:s') string(19) "2016-01-18 23:54:24" string(19) "2016-01-18 23:54:24" string(19) "2016-01-18 23:54:24"
Output for 7.1.6
Europe/Amsterdam $nowUtc object(DateTime)#1 (3) { ["date"]=> string(26) "2016-01-18 12:54:24.011890" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } $nowUtc->format('Y-m-d H:i:s') string(19) "2016-01-18 12:54:24" $nowUtc->setTimezone( new \DateTimeZone( 'Australia/Sydney' ) ) object(DateTime)#2 (3) { ["date"]=> string(26) "2016-01-18 23:54:24.011961" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Australia/Sydney" } $nowUtc->format('Y-m-d H:i:s') string(19) "2016-01-18 23:54:24" string(19) "2016-01-18 23:54:24" string(19) "2016-01-18 23:54:24"
Output for 7.1.5
Europe/Amsterdam $nowUtc object(DateTime)#1 (3) { ["date"]=> string(26) "2016-01-18 12:54:24.010527" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } $nowUtc->format('Y-m-d H:i:s') string(19) "2016-01-18 12:54:24" $nowUtc->setTimezone( new \DateTimeZone( 'Australia/Sydney' ) ) object(DateTime)#2 (3) { ["date"]=> string(26) "2016-01-18 23:54:24.010605" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Australia/Sydney" } $nowUtc->format('Y-m-d H:i:s') string(19) "2016-01-18 23:54:24" string(19) "2016-01-18 23:54:24" string(19) "2016-01-18 23:54:24"
Output for 7.1.0
Europe/Amsterdam $nowUtc object(DateTime)#1 (3) { ["date"]=> string(26) "2016-01-18 12:54:24.004027" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } $nowUtc->format('Y-m-d H:i:s') string(19) "2016-01-18 12:54:24" $nowUtc->setTimezone( new \DateTimeZone( 'Australia/Sydney' ) ) object(DateTime)#2 (3) { ["date"]=> string(26) "2016-01-18 23:54:24.004071" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Australia/Sydney" } $nowUtc->format('Y-m-d H:i:s') string(19) "2016-01-18 23:54:24" string(19) "2016-01-18 23:54:24" string(19) "2016-01-18 23:54:24"
Output for 5.6.28, 7.0.20
Europe/Amsterdam $nowUtc object(DateTime)#1 (3) { ["date"]=> string(26) "2016-01-18 12:54:24.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } $nowUtc->format('Y-m-d H:i:s') string(19) "2016-01-18 12:54:24" $nowUtc->setTimezone( new \DateTimeZone( 'Australia/Sydney' ) ) object(DateTime)#2 (3) { ["date"]=> string(26) "2016-01-18 23:54:24.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Australia/Sydney" } $nowUtc->format('Y-m-d H:i:s') string(19) "2016-01-18 23:54:24" string(19) "2016-01-18 23:54:24" string(19) "2016-01-18 23:54:24"
Output for 7.0.6
Europe/Amsterdam $nowUtc object(DateTime)#1 (3) { ["date"]=> string(26) "2016-05-21 11:57:28.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } $nowUtc->format('Y-m-d H:i:s') string(19) "2016-05-21 11:57:28" $nowUtc->setTimezone( new \DateTimeZone( 'Australia/Sydney' ) ) object(DateTime)#2 (3) { ["date"]=> string(26) "2016-05-21 21:57:28.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Australia/Sydney" } $nowUtc->format('Y-m-d H:i:s') string(19) "2016-05-21 21:57:28" string(19) "2016-05-21 21:57:28" string(19) "2016-05-21 21:57:28"
Output for 7.0.5
Europe/Amsterdam $nowUtc object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-03 07:53:41.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } $nowUtc->format('Y-m-d H:i:s') string(19) "2016-04-03 07:53:41" $nowUtc->setTimezone( new \DateTimeZone( 'Australia/Sydney' ) ) object(DateTime)#2 (3) { ["date"]=> string(26) "2016-04-03 17:53:41.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Australia/Sydney" } $nowUtc->format('Y-m-d H:i:s') string(19) "2016-04-03 17:53:41" string(19) "2016-04-03 17:53:41" string(19) "2016-04-03 17:53:41"
Output for 7.0.4
Europe/Amsterdam $nowUtc object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-10 21:01:15.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } $nowUtc->format('Y-m-d H:i:s') string(19) "2016-03-10 21:01:15" $nowUtc->setTimezone( new \DateTimeZone( 'Australia/Sydney' ) ) object(DateTime)#2 (3) { ["date"]=> string(26) "2016-03-11 08:01:15.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Australia/Sydney" } $nowUtc->format('Y-m-d H:i:s') string(19) "2016-03-11 08:01:15" string(19) "2016-03-11 08:01:15" string(19) "2016-03-11 08:01:15"
Output for 7.0.3
Europe/Amsterdam $nowUtc object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-18 22:35:56.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } $nowUtc->format('Y-m-d H:i:s') string(19) "2016-03-18 22:35:56" $nowUtc->setTimezone( new \DateTimeZone( 'Australia/Sydney' ) ) object(DateTime)#2 (3) { ["date"]=> string(26) "2016-03-19 09:35:56.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Australia/Sydney" } $nowUtc->format('Y-m-d H:i:s') string(19) "2016-03-19 09:35:56" string(19) "2016-03-19 09:35:56" string(19) "2016-03-19 09:35:56"
Output for 7.0.2
Europe/Amsterdam $nowUtc object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-23 04:43:39.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } $nowUtc->format('Y-m-d H:i:s') string(19) "2016-03-23 04:43:39" $nowUtc->setTimezone( new \DateTimeZone( 'Australia/Sydney' ) ) object(DateTime)#2 (3) { ["date"]=> string(26) "2016-03-23 15:43:39.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Australia/Sydney" } $nowUtc->format('Y-m-d H:i:s') string(19) "2016-03-23 15:43:39" string(19) "2016-03-23 15:43:39" string(19) "2016-03-23 15:43:39"
Output for 7.0.1
Europe/Amsterdam $nowUtc object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-24 07:46:04.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } $nowUtc->format('Y-m-d H:i:s') string(19) "2016-03-24 07:46:04" $nowUtc->setTimezone( new \DateTimeZone( 'Australia/Sydney' ) ) object(DateTime)#2 (3) { ["date"]=> string(26) "2016-03-24 18:46:04.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Australia/Sydney" } $nowUtc->format('Y-m-d H:i:s') string(19) "2016-03-24 18:46:04" string(19) "2016-03-24 18:46:04" string(19) "2016-03-24 18:46:04"
Output for 7.0.0
Europe/Amsterdam $nowUtc object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-27 08:38:59.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } $nowUtc->format('Y-m-d H:i:s') string(19) "2016-03-27 08:38:59" $nowUtc->setTimezone( new \DateTimeZone( 'Australia/Sydney' ) ) object(DateTime)#2 (3) { ["date"]=> string(26) "2016-03-27 19:38:59.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Australia/Sydney" } $nowUtc->format('Y-m-d H:i:s') string(19) "2016-03-27 19:38:59" string(19) "2016-03-27 19:38:59" string(19) "2016-03-27 19:38:59"
Output for 5.6.21
Europe/Amsterdam $nowUtc object(DateTime)#1 (3) { ["date"]=> string(26) "2016-05-02 14:48:13.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } $nowUtc->format('Y-m-d H:i:s') string(19) "2016-05-02 14:48:13" $nowUtc->setTimezone( new \DateTimeZone( 'Australia/Sydney' ) ) object(DateTime)#2 (3) { ["date"]=> string(26) "2016-05-03 00:48:13.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Australia/Sydney" } $nowUtc->format('Y-m-d H:i:s') string(19) "2016-05-03 00:48:13" string(19) "2016-05-03 00:48:13" string(19) "2016-05-03 00:48:13"
Output for 5.6.20
Europe/Amsterdam $nowUtc object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-10 06:56:04.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } $nowUtc->format('Y-m-d H:i:s') string(19) "2016-04-10 06:56:04" $nowUtc->setTimezone( new \DateTimeZone( 'Australia/Sydney' ) ) object(DateTime)#2 (3) { ["date"]=> string(26) "2016-04-10 16:56:04.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Australia/Sydney" } $nowUtc->format('Y-m-d H:i:s') string(19) "2016-04-10 16:56:04" string(19) "2016-04-10 16:56:04" string(19) "2016-04-10 16:56:04"
Output for 5.6.19
Europe/Amsterdam $nowUtc object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-08 05:11:20.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } $nowUtc->format('Y-m-d H:i:s') string(19) "2016-03-08 05:11:20" $nowUtc->setTimezone( new \DateTimeZone( 'Australia/Sydney' ) ) object(DateTime)#2 (3) { ["date"]=> string(26) "2016-03-08 16:11:20.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Australia/Sydney" } $nowUtc->format('Y-m-d H:i:s') string(19) "2016-03-08 16:11:20" string(19) "2016-03-08 16:11:20" string(19) "2016-03-08 16:11:20"
Output for 5.6.18
Europe/Amsterdam $nowUtc object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-15 14:10:03.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } $nowUtc->format('Y-m-d H:i:s') string(19) "2016-03-15 14:10:03" $nowUtc->setTimezone( new \DateTimeZone( 'Australia/Sydney' ) ) object(DateTime)#2 (3) { ["date"]=> string(26) "2016-03-16 01:10:03.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Australia/Sydney" } $nowUtc->format('Y-m-d H:i:s') string(19) "2016-03-16 01:10:03" string(19) "2016-03-16 01:10:03" string(19) "2016-03-16 01:10:03"
Output for 5.6.17
Europe/Amsterdam $nowUtc object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-20 01:42:04.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } $nowUtc->format('Y-m-d H:i:s') string(19) "2016-03-20 01:42:04" $nowUtc->setTimezone( new \DateTimeZone( 'Australia/Sydney' ) ) object(DateTime)#2 (3) { ["date"]=> string(26) "2016-03-20 12:42:04.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Australia/Sydney" } $nowUtc->format('Y-m-d H:i:s') string(19) "2016-03-20 12:42:04" string(19) "2016-03-20 12:42:04" string(19) "2016-03-20 12:42:04"
Output for 5.6.16
Europe/Amsterdam $nowUtc object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-28 09:28:51.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } $nowUtc->format('Y-m-d H:i:s') string(19) "2016-03-28 09:28:51" $nowUtc->setTimezone( new \DateTimeZone( 'Australia/Sydney' ) ) object(DateTime)#2 (3) { ["date"]=> string(26) "2016-03-28 20:28:51.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Australia/Sydney" } $nowUtc->format('Y-m-d H:i:s') string(19) "2016-03-28 20:28:51" string(19) "2016-03-28 20:28:51" string(19) "2016-03-28 20:28:51"
Output for 5.6.15
Europe/Amsterdam $nowUtc object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-29 10:18:27.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } $nowUtc->format('Y-m-d H:i:s') string(19) "2016-03-29 10:18:27" $nowUtc->setTimezone( new \DateTimeZone( 'Australia/Sydney' ) ) object(DateTime)#2 (3) { ["date"]=> string(26) "2016-03-29 21:18:27.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Australia/Sydney" } $nowUtc->format('Y-m-d H:i:s') string(19) "2016-03-29 21:18:27" string(19) "2016-03-29 21:18:27" string(19) "2016-03-29 21:18:27"
Output for 5.6.14
Europe/Amsterdam $nowUtc object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-14 16:00:49.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } $nowUtc->format('Y-m-d H:i:s') string(19) "2016-04-14 16:00:49" $nowUtc->setTimezone( new \DateTimeZone( 'Australia/Sydney' ) ) object(DateTime)#2 (3) { ["date"]=> string(26) "2016-04-15 02:00:49.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Australia/Sydney" } $nowUtc->format('Y-m-d H:i:s') string(19) "2016-04-15 02:00:49" string(19) "2016-04-15 02:00:49" string(19) "2016-04-15 02:00:49"
Output for 5.6.13
Europe/Amsterdam $nowUtc object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-15 16:39:48.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } $nowUtc->format('Y-m-d H:i:s') string(19) "2016-04-15 16:39:48" $nowUtc->setTimezone( new \DateTimeZone( 'Australia/Sydney' ) ) object(DateTime)#2 (3) { ["date"]=> string(26) "2016-04-16 02:39:48.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Australia/Sydney" } $nowUtc->format('Y-m-d H:i:s') string(19) "2016-04-16 02:39:48" string(19) "2016-04-16 02:39:48" string(19) "2016-04-16 02:39:48"
Output for 5.6.12
Europe/Amsterdam $nowUtc object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-20 07:10:15.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } $nowUtc->format('Y-m-d H:i:s') string(19) "2016-04-20 07:10:15" $nowUtc->setTimezone( new \DateTimeZone( 'Australia/Sydney' ) ) object(DateTime)#2 (3) { ["date"]=> string(26) "2016-04-20 17:10:15.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Australia/Sydney" } $nowUtc->format('Y-m-d H:i:s') string(19) "2016-04-20 17:10:15" string(19) "2016-04-20 17:10:15" string(19) "2016-04-20 17:10:15"
Output for 5.6.11
Europe/Amsterdam $nowUtc object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-24 13:36:13.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } $nowUtc->format('Y-m-d H:i:s') string(19) "2016-04-24 13:36:13" $nowUtc->setTimezone( new \DateTimeZone( 'Australia/Sydney' ) ) object(DateTime)#2 (3) { ["date"]=> string(26) "2016-04-24 23:36:13.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Australia/Sydney" } $nowUtc->format('Y-m-d H:i:s') string(19) "2016-04-24 23:36:13" string(19) "2016-04-24 23:36:13" string(19) "2016-04-24 23:36:13"
Output for 5.6.10
Europe/Amsterdam $nowUtc object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-25 15:41:59.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } $nowUtc->format('Y-m-d H:i:s') string(19) "2016-04-25 15:41:59" $nowUtc->setTimezone( new \DateTimeZone( 'Australia/Sydney' ) ) object(DateTime)#2 (3) { ["date"]=> string(26) "2016-04-26 01:41:59.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Australia/Sydney" } $nowUtc->format('Y-m-d H:i:s') string(19) "2016-04-26 01:41:59" string(19) "2016-04-26 01:41:59" string(19) "2016-04-26 01:41:59"
Output for 5.6.9
Europe/Amsterdam $nowUtc object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-27 21:10:05.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } $nowUtc->format('Y-m-d H:i:s') string(19) "2016-04-27 21:10:05" $nowUtc->setTimezone( new \DateTimeZone( 'Australia/Sydney' ) ) object(DateTime)#2 (3) { ["date"]=> string(26) "2016-04-28 07:10:05.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Australia/Sydney" } $nowUtc->format('Y-m-d H:i:s') string(19) "2016-04-28 07:10:05" string(19) "2016-04-28 07:10:05" string(19) "2016-04-28 07:10:05"
Output for 5.6.8
Europe/Amsterdam $nowUtc object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-30 05:36:29.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } $nowUtc->format('Y-m-d H:i:s') string(19) "2016-04-30 05:36:29" $nowUtc->setTimezone( new \DateTimeZone( 'Australia/Sydney' ) ) object(DateTime)#2 (3) { ["date"]=> string(26) "2016-04-30 15:36:29.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Australia/Sydney" } $nowUtc->format('Y-m-d H:i:s') string(19) "2016-04-30 15:36:29" string(19) "2016-04-30 15:36:29" string(19) "2016-04-30 15:36:29"
Output for 5.5.35
Europe/Amsterdam $nowUtc object(DateTime)#1 (3) { ["date"]=> string(26) "2016-05-23 00:53:13.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } $nowUtc->format('Y-m-d H:i:s') string(19) "2016-05-23 00:53:13" $nowUtc->setTimezone( new \DateTimeZone( 'Australia/Sydney' ) ) object(DateTime)#2 (3) { ["date"]=> string(26) "2016-05-23 10:53:13.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Australia/Sydney" } $nowUtc->format('Y-m-d H:i:s') string(19) "2016-05-23 10:53:13" string(19) "2016-05-23 10:53:13" string(19) "2016-05-23 10:53:13"
Output for 5.5.34
Europe/Amsterdam $nowUtc object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-11 09:10:57.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } $nowUtc->format('Y-m-d H:i:s') string(19) "2016-04-11 09:10:57" $nowUtc->setTimezone( new \DateTimeZone( 'Australia/Sydney' ) ) object(DateTime)#2 (3) { ["date"]=> string(26) "2016-04-11 19:10:57.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Australia/Sydney" } $nowUtc->format('Y-m-d H:i:s') string(19) "2016-04-11 19:10:57" string(19) "2016-04-11 19:10:57" string(19) "2016-04-11 19:10:57"
Output for 5.5.33
Europe/Amsterdam $nowUtc object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-09 08:16:23.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } $nowUtc->format('Y-m-d H:i:s') string(19) "2016-03-09 08:16:23" $nowUtc->setTimezone( new \DateTimeZone( 'Australia/Sydney' ) ) object(DateTime)#2 (3) { ["date"]=> string(26) "2016-03-09 19:16:23.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Australia/Sydney" } $nowUtc->format('Y-m-d H:i:s') string(19) "2016-03-09 19:16:23" string(19) "2016-03-09 19:16:23" string(19) "2016-03-09 19:16:23"
Output for 5.5.32
Europe/Amsterdam $nowUtc object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-17 18:08:49.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } $nowUtc->format('Y-m-d H:i:s') string(19) "2016-03-17 18:08:49" $nowUtc->setTimezone( new \DateTimeZone( 'Australia/Sydney' ) ) object(DateTime)#2 (3) { ["date"]=> string(26) "2016-03-18 05:08:49.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Australia/Sydney" } $nowUtc->format('Y-m-d H:i:s') string(19) "2016-03-18 05:08:49" string(19) "2016-03-18 05:08:49" string(19) "2016-03-18 05:08:49"
Output for 5.5.31
Europe/Amsterdam $nowUtc object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-21 04:54:58.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } $nowUtc->format('Y-m-d H:i:s') string(19) "2016-03-21 04:54:58" $nowUtc->setTimezone( new \DateTimeZone( 'Australia/Sydney' ) ) object(DateTime)#2 (3) { ["date"]=> string(26) "2016-03-21 15:54:58.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Australia/Sydney" } $nowUtc->format('Y-m-d H:i:s') string(19) "2016-03-21 15:54:58" string(19) "2016-03-21 15:54:58" string(19) "2016-03-21 15:54:58"
Output for 5.5.30
Europe/Amsterdam $nowUtc object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-01 12:09:47.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } $nowUtc->format('Y-m-d H:i:s') string(19) "2016-04-01 12:09:47" $nowUtc->setTimezone( new \DateTimeZone( 'Australia/Sydney' ) ) object(DateTime)#2 (3) { ["date"]=> string(26) "2016-04-01 23:09:47.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Australia/Sydney" } $nowUtc->format('Y-m-d H:i:s') string(19) "2016-04-01 23:09:47" string(19) "2016-04-01 23:09:47" string(19) "2016-04-01 23:09:47"
Output for 5.5.29
Europe/Amsterdam $nowUtc object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-17 06:57:36.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } $nowUtc->format('Y-m-d H:i:s') string(19) "2016-04-17 06:57:36" $nowUtc->setTimezone( new \DateTimeZone( 'Australia/Sydney' ) ) object(DateTime)#2 (3) { ["date"]=> string(26) "2016-04-17 16:57:36.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Australia/Sydney" } $nowUtc->format('Y-m-d H:i:s') string(19) "2016-04-17 16:57:36" string(19) "2016-04-17 16:57:36" string(19) "2016-04-17 16:57:36"
Output for 5.5.28
Europe/Amsterdam $nowUtc object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-21 10:29:51.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } $nowUtc->format('Y-m-d H:i:s') string(19) "2016-04-21 10:29:51" $nowUtc->setTimezone( new \DateTimeZone( 'Australia/Sydney' ) ) object(DateTime)#2 (3) { ["date"]=> string(26) "2016-04-21 20:29:51.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Australia/Sydney" } $nowUtc->format('Y-m-d H:i:s') string(19) "2016-04-21 20:29:51" string(19) "2016-04-21 20:29:51" string(19) "2016-04-21 20:29:51"
Output for 5.5.27
Europe/Amsterdam $nowUtc object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-22 12:07:23.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } $nowUtc->format('Y-m-d H:i:s') string(19) "2016-04-22 12:07:23" $nowUtc->setTimezone( new \DateTimeZone( 'Australia/Sydney' ) ) object(DateTime)#2 (3) { ["date"]=> string(26) "2016-04-22 22:07:23.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Australia/Sydney" } $nowUtc->format('Y-m-d H:i:s') string(19) "2016-04-22 22:07:23" string(19) "2016-04-22 22:07:23" string(19) "2016-04-22 22:07:23"
Output for 5.5.26
Europe/Amsterdam $nowUtc object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-26 18:23:37.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } $nowUtc->format('Y-m-d H:i:s') string(19) "2016-04-26 18:23:37" $nowUtc->setTimezone( new \DateTimeZone( 'Australia/Sydney' ) ) object(DateTime)#2 (3) { ["date"]=> string(26) "2016-04-27 04:23:37.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Australia/Sydney" } $nowUtc->format('Y-m-d H:i:s') string(19) "2016-04-27 04:23:37" string(19) "2016-04-27 04:23:37" string(19) "2016-04-27 04:23:37"
Output for 5.5.25
Europe/Amsterdam $nowUtc object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-29 01:50:01.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } $nowUtc->format('Y-m-d H:i:s') string(19) "2016-04-29 01:50:01" $nowUtc->setTimezone( new \DateTimeZone( 'Australia/Sydney' ) ) object(DateTime)#2 (3) { ["date"]=> string(26) "2016-04-29 11:50:01.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Australia/Sydney" } $nowUtc->format('Y-m-d H:i:s') string(19) "2016-04-29 11:50:01" string(19) "2016-04-29 11:50:01" string(19) "2016-04-29 11:50:01"
Output for 5.5.24
Europe/Amsterdam $nowUtc object(DateTime)#1 (3) { ["date"]=> string(26) "2016-05-24 08:21:44.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } $nowUtc->format('Y-m-d H:i:s') string(19) "2016-05-24 08:21:44" $nowUtc->setTimezone( new \DateTimeZone( 'Australia/Sydney' ) ) object(DateTime)#2 (3) { ["date"]=> string(26) "2016-05-24 18:21:44.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Australia/Sydney" } $nowUtc->format('Y-m-d H:i:s') string(19) "2016-05-24 18:21:44" string(19) "2016-05-24 18:21:44" string(19) "2016-05-24 18:21:44"
Output for 5.4.44 - 5.4.45
Europe/Amsterdam $nowUtc object(DateTime)#1 (3) { ["date"]=> string(26) "2016-01-18 12:54:28.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } $nowUtc->format('Y-m-d H:i:s') string(19) "2016-01-18 12:54:28" $nowUtc->setTimezone( new \DateTimeZone( 'Australia/Sydney' ) ) object(DateTime)#2 (3) { ["date"]=> string(26) "2016-01-18 23:54:28.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Australia/Sydney" } $nowUtc->format('Y-m-d H:i:s') string(19) "2016-01-18 23:54:28" string(19) "2016-01-18 23:54:28" string(19) "2016-01-18 23:54:28"
Output for 5.4.42 - 5.4.43
Europe/Amsterdam $nowUtc object(DateTime)#1 (3) { ["date"]=> string(26) "2016-01-18 12:54:29.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } $nowUtc->format('Y-m-d H:i:s') string(19) "2016-01-18 12:54:29" $nowUtc->setTimezone( new \DateTimeZone( 'Australia/Sydney' ) ) object(DateTime)#2 (3) { ["date"]=> string(26) "2016-01-18 23:54:29.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Australia/Sydney" } $nowUtc->format('Y-m-d H:i:s') string(19) "2016-01-18 23:54:29" string(19) "2016-01-18 23:54:29" string(19) "2016-01-18 23:54:29"
Output for 5.4.41
Europe/Amsterdam $nowUtc object(DateTime)#1 (3) { ["date"]=> string(26) "2016-01-18 12:54:30.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } $nowUtc->format('Y-m-d H:i:s') string(19) "2016-01-18 12:54:30" $nowUtc->setTimezone( new \DateTimeZone( 'Australia/Sydney' ) ) object(DateTime)#2 (3) { ["date"]=> string(26) "2016-01-18 23:54:30.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Australia/Sydney" } $nowUtc->format('Y-m-d H:i:s') string(19) "2016-01-18 23:54:30" string(19) "2016-01-18 23:54:30" string(19) "2016-01-18 23:54:30"
Output for 5.4.39 - 5.4.40
Europe/Amsterdam $nowUtc object(DateTime)#1 (3) { ["date"]=> string(26) "2016-01-18 12:54:31.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } $nowUtc->format('Y-m-d H:i:s') string(19) "2016-01-18 12:54:31" $nowUtc->setTimezone( new \DateTimeZone( 'Australia/Sydney' ) ) object(DateTime)#2 (3) { ["date"]=> string(26) "2016-01-18 23:54:31.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Australia/Sydney" } $nowUtc->format('Y-m-d H:i:s') string(19) "2016-01-18 23:54:31" string(19) "2016-01-18 23:54:31" string(19) "2016-01-18 23:54:31"
Output for 5.4.36 - 5.4.38
Europe/Amsterdam $nowUtc object(DateTime)#1 (3) { ["date"]=> string(26) "2016-01-18 12:54:32.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } $nowUtc->format('Y-m-d H:i:s') string(19) "2016-01-18 12:54:32" $nowUtc->setTimezone( new \DateTimeZone( 'Australia/Sydney' ) ) object(DateTime)#2 (3) { ["date"]=> string(26) "2016-01-18 23:54:32.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Australia/Sydney" } $nowUtc->format('Y-m-d H:i:s') string(19) "2016-01-18 23:54:32" string(19) "2016-01-18 23:54:32" string(19) "2016-01-18 23:54:32"
Output for 5.4.34 - 5.4.35
Europe/Amsterdam $nowUtc object(DateTime)#1 (3) { ["date"]=> string(26) "2016-01-18 12:54:33.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } $nowUtc->format('Y-m-d H:i:s') string(19) "2016-01-18 12:54:33" $nowUtc->setTimezone( new \DateTimeZone( 'Australia/Sydney' ) ) object(DateTime)#2 (3) { ["date"]=> string(26) "2016-01-18 23:54:33.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Australia/Sydney" } $nowUtc->format('Y-m-d H:i:s') string(19) "2016-01-18 23:54:33" string(19) "2016-01-18 23:54:33" string(19) "2016-01-18 23:54:33"
Output for 5.4.31 - 5.4.32
Europe/Amsterdam $nowUtc object(DateTime)#1 (3) { ["date"]=> string(26) "2016-01-18 12:54:34.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } $nowUtc->format('Y-m-d H:i:s') string(19) "2016-01-18 12:54:34" $nowUtc->setTimezone( new \DateTimeZone( 'Australia/Sydney' ) ) object(DateTime)#2 (3) { ["date"]=> string(26) "2016-01-18 23:54:34.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Australia/Sydney" } $nowUtc->format('Y-m-d H:i:s') string(19) "2016-01-18 23:54:34" string(19) "2016-01-18 23:54:34" string(19) "2016-01-18 23:54:34"
Output for 5.4.30
Europe/Amsterdam $nowUtc object(DateTime)#1 (3) { ["date"]=> string(26) "2016-01-18 12:54:35.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } $nowUtc->format('Y-m-d H:i:s') string(19) "2016-01-18 12:54:35" $nowUtc->setTimezone( new \DateTimeZone( 'Australia/Sydney' ) ) object(DateTime)#2 (3) { ["date"]=> string(26) "2016-01-18 23:54:35.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Australia/Sydney" } $nowUtc->format('Y-m-d H:i:s') string(19) "2016-01-18 23:54:35" string(19) "2016-01-18 23:54:35" string(19) "2016-01-18 23:54:35"
Output for 5.4.27 - 5.4.29
Europe/Amsterdam $nowUtc object(DateTime)#1 (3) { ["date"]=> string(19) "2016-01-18 12:54:35" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } $nowUtc->format('Y-m-d H:i:s') string(19) "2016-01-18 12:54:35" $nowUtc->setTimezone( new \DateTimeZone( 'Australia/Sydney' ) ) object(DateTime)#2 (3) { ["date"]=> string(19) "2016-01-18 23:54:35" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Australia/Sydney" } $nowUtc->format('Y-m-d H:i:s') string(19) "2016-01-18 23:54:35" string(19) "2016-01-18 23:54:35" string(19) "2016-01-18 23:54:35"
Output for 5.4.24 - 5.4.26
Europe/Amsterdam $nowUtc object(DateTime)#1 (3) { ["date"]=> string(19) "2016-01-18 12:54:36" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } $nowUtc->format('Y-m-d H:i:s') string(19) "2016-01-18 12:54:36" $nowUtc->setTimezone( new \DateTimeZone( 'Australia/Sydney' ) ) object(DateTime)#2 (3) { ["date"]=> string(19) "2016-01-18 23:54:36" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Australia/Sydney" } $nowUtc->format('Y-m-d H:i:s') string(19) "2016-01-18 23:54:36" string(19) "2016-01-18 23:54:36" string(19) "2016-01-18 23:54:36"
Output for 5.3.28, 5.4.21 - 5.4.23
Europe/Amsterdam $nowUtc object(DateTime)#1 (3) { ["date"]=> string(19) "2016-01-18 12:54:37" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } $nowUtc->format('Y-m-d H:i:s') string(19) "2016-01-18 12:54:37" $nowUtc->setTimezone( new \DateTimeZone( 'Australia/Sydney' ) ) object(DateTime)#2 (3) { ["date"]=> string(19) "2016-01-18 23:54:37" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Australia/Sydney" } $nowUtc->format('Y-m-d H:i:s') string(19) "2016-01-18 23:54:37" string(19) "2016-01-18 23:54:37" string(19) "2016-01-18 23:54:37"
Output for 5.4.18 - 5.4.20
Europe/Amsterdam $nowUtc object(DateTime)#1 (3) { ["date"]=> string(19) "2016-01-18 12:54:38" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } $nowUtc->format('Y-m-d H:i:s') string(19) "2016-01-18 12:54:38" $nowUtc->setTimezone( new \DateTimeZone( 'Australia/Sydney' ) ) object(DateTime)#2 (3) { ["date"]=> string(19) "2016-01-18 23:54:38" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Australia/Sydney" } $nowUtc->format('Y-m-d H:i:s') string(19) "2016-01-18 23:54:38" string(19) "2016-01-18 23:54:38" string(19) "2016-01-18 23:54:38"
Output for 5.3.26 - 5.3.27, 5.4.15 - 5.4.17
Europe/Amsterdam $nowUtc object(DateTime)#1 (3) { ["date"]=> string(19) "2016-01-18 12:54:39" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } $nowUtc->format('Y-m-d H:i:s') string(19) "2016-01-18 12:54:39" $nowUtc->setTimezone( new \DateTimeZone( 'Australia/Sydney' ) ) object(DateTime)#2 (3) { ["date"]=> string(19) "2016-01-18 23:54:39" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Australia/Sydney" } $nowUtc->format('Y-m-d H:i:s') string(19) "2016-01-18 23:54:39" string(19) "2016-01-18 23:54:39" string(19) "2016-01-18 23:54:39"
Output for 5.3.22 - 5.3.25, 5.4.12 - 5.4.14
Europe/Amsterdam $nowUtc object(DateTime)#1 (3) { ["date"]=> string(19) "2016-01-18 12:54:40" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } $nowUtc->format('Y-m-d H:i:s') string(19) "2016-01-18 12:54:40" $nowUtc->setTimezone( new \DateTimeZone( 'Australia/Sydney' ) ) object(DateTime)#2 (3) { ["date"]=> string(19) "2016-01-18 23:54:40" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Australia/Sydney" } $nowUtc->format('Y-m-d H:i:s') string(19) "2016-01-18 23:54:40" string(19) "2016-01-18 23:54:40" string(19) "2016-01-18 23:54:40"
Output for 5.3.29
Europe/Amsterdam $nowUtc object(DateTime)#1 (3) { ["date"]=> string(19) "2016-01-18 12:54:34" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } $nowUtc->format('Y-m-d H:i:s') string(19) "2016-01-18 12:54:34" $nowUtc->setTimezone( new \DateTimeZone( 'Australia/Sydney' ) ) object(DateTime)#2 (3) { ["date"]=> string(19) "2016-01-18 23:54:34" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Australia/Sydney" } $nowUtc->format('Y-m-d H:i:s') string(19) "2016-01-18 23:54:34" string(19) "2016-01-18 23:54:34" string(19) "2016-01-18 23:54:34"