3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_export(new DateTime(null));
Output for 7.2.0
DateTime::__set_state(array( 'date' => '2015-09-09 14:50:26.003131', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 7.1.10
DateTime::__set_state(array( 'date' => '2015-09-09 14:50:26.064392', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 7.1.7
DateTime::__set_state(array( 'date' => '2015-09-09 14:50:26.003342', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 7.1.6
DateTime::__set_state(array( 'date' => '2015-09-09 14:50:26.011827', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 7.1.5
DateTime::__set_state(array( 'date' => '2015-09-09 14:50:26.011496', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 7.1.0
DateTime::__set_state(array( 'date' => '2015-09-09 14:50:26.004060', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 7.0.20
DateTime::__set_state(array( 'date' => '2015-09-09 14:50:26.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 7.0.6
DateTime::__set_state(array( 'date' => '2016-05-03 05:44:23.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 7.0.5
DateTime::__set_state(array( 'date' => '2016-04-02 18:49:31.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 7.0.4
DateTime::__set_state(array( 'date' => '2016-03-10 04:45:41.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 7.0.3
DateTime::__set_state(array( 'date' => '2016-03-18 05:07:32.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 7.0.2
DateTime::__set_state(array( 'date' => '2016-03-21 15:35:00.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 7.0.1
DateTime::__set_state(array( 'date' => '2016-03-23 16:10:45.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 7.0.0
DateTime::__set_state(array( 'date' => '2016-03-26 17:57:31.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 5.6.21
DateTime::__set_state(array( 'date' => '2016-05-02 00:47:57.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 5.6.20
DateTime::__set_state(array( 'date' => '2016-04-09 14:05:56.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 5.6.19
DateTime::__set_state(array( 'date' => '2016-03-07 04:50:31.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 5.6.18
DateTime::__set_state(array( 'date' => '2016-03-14 17:47:52.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 5.6.17
DateTime::__set_state(array( 'date' => '2016-03-19 09:31:05.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 5.6.16
DateTime::__set_state(array( 'date' => '2016-03-27 19:43:45.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 5.6.15
DateTime::__set_state(array( 'date' => '2016-03-28 20:36:30.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 5.6.14
DateTime::__set_state(array( 'date' => '2016-04-01 23:07:38.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 5.6.13
DateTime::__set_state(array( 'date' => '2016-04-15 03:08:58.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 5.6.12
DateTime::__set_state(array( 'date' => '2016-04-19 16:37:20.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 5.6.11
DateTime::__set_state(array( 'date' => '2016-04-22 23:33:04.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 5.6.10
DateTime::__set_state(array( 'date' => '2016-04-25 01:25:38.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 5.6.9
DateTime::__set_state(array( 'date' => '2016-04-27 06:26:18.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 5.6.8
DateTime::__set_state(array( 'date' => '2016-04-29 14:17:22.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 5.6.7
DateTime::__set_state(array( 'date' => '2016-05-25 04:05:35.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 5.5.35
DateTime::__set_state(array( 'date' => '2016-05-22 04:36:01.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 5.5.34
DateTime::__set_state(array( 'date' => '2016-04-10 20:02:54.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 5.5.33
DateTime::__set_state(array( 'date' => '2016-03-08 15:41:38.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 5.5.32
DateTime::__set_state(array( 'date' => '2016-03-16 21:34:06.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 5.5.31
DateTime::__set_state(array( 'date' => '2016-03-20 12:21:50.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 5.5.30
DateTime::__set_state(array( 'date' => '2016-03-31 22:38:00.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 5.5.29
DateTime::__set_state(array( 'date' => '2016-04-16 17:14:27.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 5.5.28
DateTime::__set_state(array( 'date' => '2016-04-20 19:39:48.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 5.5.27
DateTime::__set_state(array( 'date' => '2016-04-21 21:58:31.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 5.5.26
DateTime::__set_state(array( 'date' => '2016-04-26 03:49:32.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 5.5.25
DateTime::__set_state(array( 'date' => '2016-04-28 09:47:02.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 5.5.24
DateTime::__set_state(array( 'date' => '2016-05-23 16:38:58.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 5.4.42 - 5.4.45
DateTime::__set_state(array( 'date' => '2015-09-09 14:50:35.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 5.4.35 - 5.4.41
DateTime::__set_state(array( 'date' => '2015-09-09 14:50:36.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 5.4.30 - 5.4.34
DateTime::__set_state(array( 'date' => '2015-09-09 14:50:37.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 5.4.28 - 5.4.29
DateTime::__set_state(array( 'date' => '2015-09-09 14:50:37', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 5.4.21 - 5.4.27
DateTime::__set_state(array( 'date' => '2015-09-09 14:50:38', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 5.4.13 - 5.4.20
DateTime::__set_state(array( 'date' => '2015-09-09 14:50:39', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 5.4.7 - 5.4.12
DateTime::__set_state(array( 'date' => '2015-09-09 14:50:40', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 5.4.6
DateTime::__set_state(array( 'date' => '2015-10-27 02:57:17', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 5.4.5
DateTime::__set_state(array( 'date' => '2015-10-27 04:30:52', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 5.4.4
DateTime::__set_state(array( 'date' => '2015-10-27 06:03:59', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 5.4.3
DateTime::__set_state(array( 'date' => '2015-10-27 07:45:45', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 5.4.2
DateTime::__set_state(array( 'date' => '2015-10-27 09:29:08', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 5.3.29
DateTime::__set_state(array( 'date' => '2015-09-20 17:00:57', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 5.3.27 - 5.3.28
DateTime::__set_state(array( 'date' => '2015-09-20 17:00:56', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 5.3.25 - 5.3.26
DateTime::__set_state(array( 'date' => '2015-09-20 17:00:55', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 5.3.24
DateTime::__set_state(array( 'date' => '2015-09-20 17:00:54', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 5.3.22 - 5.3.23
DateTime::__set_state(array( 'date' => '2015-09-20 17:00:53', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 5.3.20 - 5.3.21
DateTime::__set_state(array( 'date' => '2015-09-20 17:00:52', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 5.3.18 - 5.3.19
DateTime::__set_state(array( 'date' => '2015-09-20 17:00:51', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 5.3.17
DateTime::__set_state(array( 'date' => '2015-09-20 17:00:50', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))