3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_export(clone new DateTime());
based on ATcW6
Output for 7.2.0
DateTime::__set_state(array( 'date' => '2016-01-18 19:31:56.003563', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 7.1.10
DateTime::__set_state(array( 'date' => '2016-01-18 19:31:56.003235', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 7.1.7
DateTime::__set_state(array( 'date' => '2016-01-18 19:31:56.002477', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 7.1.6
DateTime::__set_state(array( 'date' => '2016-01-18 19:31:56.011956', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 7.1.5
DateTime::__set_state(array( 'date' => '2016-01-18 19:31:56.006961', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 7.1.0
DateTime::__set_state(array( 'date' => '2016-01-18 19:31:56.004005', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 5.6.28, 7.0.20
DateTime::__set_state(array( 'date' => '2016-01-18 19:31:56.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 7.0.6
DateTime::__set_state(array( 'date' => '2016-05-21 13:58:47.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 7.0.5
DateTime::__set_state(array( 'date' => '2016-04-03 09:54:42.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 7.0.4
DateTime::__set_state(array( 'date' => '2016-03-10 22:02:24.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 7.0.3
DateTime::__set_state(array( 'date' => '2016-03-18 23:37:01.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 7.0.2
DateTime::__set_state(array( 'date' => '2016-03-23 05:44:44.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 7.0.1
DateTime::__set_state(array( 'date' => '2016-03-24 08:47:06.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 7.0.0
DateTime::__set_state(array( 'date' => '2016-03-27 10:39:59.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 5.6.21
DateTime::__set_state(array( 'date' => '2016-05-02 16:49:19.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 5.6.20
DateTime::__set_state(array( 'date' => '2016-04-10 08:57:04.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 5.6.19
DateTime::__set_state(array( 'date' => '2016-03-08 06:12:24.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 5.6.18
DateTime::__set_state(array( 'date' => '2016-03-15 15:11:14.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 5.6.17
DateTime::__set_state(array( 'date' => '2016-03-20 02:43:15.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 5.6.16
DateTime::__set_state(array( 'date' => '2016-03-28 11:29:49.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 5.6.15
DateTime::__set_state(array( 'date' => '2016-03-29 12:19:31.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 5.6.14
DateTime::__set_state(array( 'date' => '2016-04-14 18:01:54.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 5.6.13
DateTime::__set_state(array( 'date' => '2016-04-15 18:40:50.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 5.6.12
DateTime::__set_state(array( 'date' => '2016-04-20 09:11:33.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 5.6.11
DateTime::__set_state(array( 'date' => '2016-04-24 15:37:13.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 5.6.10
DateTime::__set_state(array( 'date' => '2016-04-25 17:43:07.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 5.6.9
DateTime::__set_state(array( 'date' => '2016-04-27 23:11:05.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 5.6.8
DateTime::__set_state(array( 'date' => '2016-04-30 07:37:27.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 5.5.35
DateTime::__set_state(array( 'date' => '2016-05-23 02:54:20.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 5.5.34
DateTime::__set_state(array( 'date' => '2016-04-11 11:11:56.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 5.5.33
DateTime::__set_state(array( 'date' => '2016-03-09 09:17:29.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 5.5.32
DateTime::__set_state(array( 'date' => '2016-03-17 19:10:03.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 5.5.31
DateTime::__set_state(array( 'date' => '2016-03-21 05:56:10.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 5.5.30
DateTime::__set_state(array( 'date' => '2016-04-01 14:10:44.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 5.5.29
DateTime::__set_state(array( 'date' => '2016-04-17 08:58:43.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 5.5.28
DateTime::__set_state(array( 'date' => '2016-04-21 12:31:02.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 5.5.27
DateTime::__set_state(array( 'date' => '2016-04-22 14:08:19.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 5.5.26
DateTime::__set_state(array( 'date' => '2016-04-26 20:24:36.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 5.5.25
DateTime::__set_state(array( 'date' => '2016-04-29 03:51:20.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 5.5.24
DateTime::__set_state(array( 'date' => '2016-05-24 10:22:44.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 5.4.45
DateTime::__set_state(array( 'date' => '2016-01-18 19:32:02.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 5.4.44
DateTime::__set_state(array( 'date' => '2016-01-18 19:32:03.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 5.4.42 - 5.4.43
DateTime::__set_state(array( 'date' => '2016-01-18 19:32:06.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 5.4.41
DateTime::__set_state(array( 'date' => '2016-01-18 19:32:07.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 5.4.40
DateTime::__set_state(array( 'date' => '2016-01-18 19:32:08.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 5.4.38 - 5.4.39
DateTime::__set_state(array( 'date' => '2016-01-18 19:32:09.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 5.4.35 - 5.4.37
DateTime::__set_state(array( 'date' => '2016-01-18 19:32:10.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 5.4.34
DateTime::__set_state(array( 'date' => '2016-01-18 19:32:11.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 5.4.30 - 5.4.32
DateTime::__set_state(array( 'date' => '2016-01-18 19:32:12.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 5.3.29, 5.4.29
DateTime::__set_state(array( 'date' => '2016-01-18 19:32:12', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 5.4.26 - 5.4.28
DateTime::__set_state(array( 'date' => '2016-01-18 19:32:13', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 5.4.23 - 5.4.25
DateTime::__set_state(array( 'date' => '2016-01-18 19:32:14', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 5.3.28, 5.4.20 - 5.4.22
DateTime::__set_state(array( 'date' => '2016-01-18 19:32:15', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 5.4.18 - 5.4.19
DateTime::__set_state(array( 'date' => '2016-01-18 19:32:16', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 5.3.25 - 5.3.27, 5.4.15 - 5.4.17
DateTime::__set_state(array( 'date' => '2016-01-18 19:32:17', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 5.3.22 - 5.3.24, 5.4.12 - 5.4.14
DateTime::__set_state(array( 'date' => '2016-01-18 19:32:18', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))