3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $date = new \DateTime(); var_dump(var_export($date));
Output for 7.1.0
DateTime::__set_state(array( 'date' => '2014-02-01 10:52:31.004903', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))NULL
Output for 5.6.28, 7.0.14
DateTime::__set_state(array( 'date' => '2014-02-01 10:52:31.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))NULL
Output for 7.0.6
DateTime::__set_state(array( 'date' => '2016-05-03 09:43:59.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))NULL
Output for 7.0.5
DateTime::__set_state(array( 'date' => '2016-04-02 22:35:51.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))NULL
Output for 7.0.4
DateTime::__set_state(array( 'date' => '2016-03-10 09:08:27.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))NULL
Output for 7.0.3
DateTime::__set_state(array( 'date' => '2016-03-18 09:45:35.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))NULL
Output for 7.0.2
DateTime::__set_state(array( 'date' => '2016-03-22 15:39:19.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))NULL
Output for 7.0.1
DateTime::__set_state(array( 'date' => '2016-03-23 20:24:29.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))NULL
Output for 7.0.0
DateTime::__set_state(array( 'date' => '2016-03-26 21:57:07.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))NULL
Output for 5.6.21
DateTime::__set_state(array( 'date' => '2016-05-02 05:05:29.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))NULL
Output for 5.6.20
DateTime::__set_state(array( 'date' => '2016-04-09 21:32:37.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))NULL
Output for 5.6.19
DateTime::__set_state(array( 'date' => '2016-03-07 17:16:21.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))NULL
Output for 5.6.18
DateTime::__set_state(array( 'date' => '2016-03-15 01:10:43.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))NULL
Output for 5.6.17
DateTime::__set_state(array( 'date' => '2016-03-19 14:01:02.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))NULL
Output for 5.6.16
DateTime::__set_state(array( 'date' => '2016-03-27 23:42:30.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))NULL
Output for 5.6.15
DateTime::__set_state(array( 'date' => '2016-03-29 00:47:40.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))NULL
Output for 5.6.14
DateTime::__set_state(array( 'date' => '2016-04-02 03:08:34.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))NULL
Output for 5.6.13
DateTime::__set_state(array( 'date' => '2016-04-15 07:02:59.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))NULL
Output for 5.6.12
DateTime::__set_state(array( 'date' => '2016-04-19 20:47:22.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))NULL
Output for 5.6.11
DateTime::__set_state(array( 'date' => '2016-04-23 03:51:26.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))NULL
Output for 5.6.10
DateTime::__set_state(array( 'date' => '2016-04-25 05:35:11.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))NULL
Output for 5.6.9
DateTime::__set_state(array( 'date' => '2016-04-27 10:33:06.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))NULL
Output for 5.6.8
DateTime::__set_state(array( 'date' => '2016-04-29 18:37:49.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))NULL
Output for 5.5.35
DateTime::__set_state(array( 'date' => '2016-05-22 08:48:38.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))NULL
Output for 5.5.34
DateTime::__set_state(array( 'date' => '2016-04-10 23:52:55.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))NULL
Output for 5.5.33
DateTime::__set_state(array( 'date' => '2016-03-08 20:13:21.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))NULL
Output for 5.5.32
DateTime::__set_state(array( 'date' => '2016-03-17 02:53:47.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))NULL
Output for 5.5.31
DateTime::__set_state(array( 'date' => '2016-03-20 16:46:52.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))NULL
Output for 5.5.30
DateTime::__set_state(array( 'date' => '2016-04-01 02:43:21.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))NULL
Output for 5.5.29
DateTime::__set_state(array( 'date' => '2016-04-16 21:08:21.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))NULL
Output for 5.5.28
DateTime::__set_state(array( 'date' => '2016-04-20 23:52:30.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))NULL
Output for 5.5.27
DateTime::__set_state(array( 'date' => '2016-04-22 02:22:11.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))NULL
Output for 5.5.26
DateTime::__set_state(array( 'date' => '2016-04-26 08:02:02.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))NULL
Output for 5.5.25
DateTime::__set_state(array( 'date' => '2016-04-28 14:20:02.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))NULL
Output for 5.5.24
DateTime::__set_state(array( 'date' => '2016-05-23 21:41:02.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))NULL
Output for 5.4.45
DateTime::__set_state(array( 'date' => '2015-09-20 20:46:58.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))NULL
Output for 5.4.44
DateTime::__set_state(array( 'date' => '2015-09-20 20:46:53.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))NULL
Output for 5.4.43
DateTime::__set_state(array( 'date' => '2015-09-20 20:46:47.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))NULL
Output for 5.4.42
DateTime::__set_state(array( 'date' => '2015-09-20 20:46:45.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))NULL
Output for 5.4.41
DateTime::__set_state(array( 'date' => '2015-09-20 20:46:42.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))NULL
Output for 5.4.40
DateTime::__set_state(array( 'date' => '2015-09-20 20:46:40.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))NULL
Output for 5.4.39
DateTime::__set_state(array( 'date' => '2015-09-20 20:46:38.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))NULL
Output for 5.4.38
DateTime::__set_state(array( 'date' => '2015-03-13 16:32:51.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))NULL
Output for 5.4.37
DateTime::__set_state(array( 'date' => '2015-03-13 16:32:44.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))NULL
Output for 5.4.34 - 5.4.36
DateTime::__set_state(array( 'date' => '2015-03-13 16:32:43.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))NULL
Output for 5.4.32
DateTime::__set_state(array( 'date' => '2014-08-29 08:37:40.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))NULL
Output for 5.4.31
DateTime::__set_state(array( 'date' => '2014-08-29 08:37:34.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))NULL
Output for 5.4.30
DateTime::__set_state(array( 'date' => '2014-08-29 08:37:29.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))NULL
Output for 5.4.28 - 5.4.29
DateTime::__set_state(array( 'date' => '2014-08-29 08:37:28', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))NULL
Output for 5.4.26 - 5.4.27
DateTime::__set_state(array( 'date' => '2014-08-29 08:37:36', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))NULL
Output for 5.4.25
DateTime::__set_state(array( 'date' => '2014-08-29 08:37:35', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))NULL
Output for 5.4.23 - 5.4.24
DateTime::__set_state(array( 'date' => '2014-02-01 10:52:31', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))NULL
Output for 5.4.0 - 5.4.22
DateTime::__set_state(array( 'date' => '2014-02-01 10:52:32', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))NULL
Output for 5.3.29
DateTime::__set_state(array( 'date' => '2014-08-29 08:37:30', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))NULL
Output for 5.3.8 - 5.3.28
DateTime::__set_state(array( 'date' => '2014-02-01 10:52:33', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))NULL
Output for 5.3.0 - 5.3.7
DateTime::__set_state(array( 'date' => '2014-02-01 10:52:34', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))NULL
Output for 5.2.0 - 5.2.17
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/KdVOY on line 2 DateTime::__set_state(array( ))NULL
Output for 5.0.0 - 5.1.6
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/KdVOY on line 2 Fatal error: Class 'DateTime' not found in /in/KdVOY on line 2
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/KdVOY on line 2 Fatal error: Cannot instantiate non-existent class: datetime in /in/KdVOY on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/KdVOY on line 2 Fatal error: Cannot instantiate non-existent class: datetime in /in/KdVOY on line 2