3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $object = new DateTime(); var_dump($object); var_dump($object->date);
based on fLaTJ
Output for 7.1.0
object(DateTime)#1 (3) { ["date"]=> string(26) "2014-07-30 16:41:26.997889" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } string(26) "2014-07-30 16:41:26.997889"
Output for 5.6.28, 7.0.14
object(DateTime)#1 (3) { ["date"]=> string(26) "2014-07-30 16:41:27.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } string(26) "2014-07-30 16:41:27.000000"
Output for 7.0.6
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-05-03 01:49:54.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } string(26) "2016-05-03 01:49:54.000000"
Output for 7.0.5
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-02 15:07:31.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } string(26) "2016-04-02 15:07:31.000000"
Output for 7.0.4
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-10 00:31:08.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } string(26) "2016-03-10 00:31:08.000000"
Output for 7.0.3
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-18 00:45:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } string(26) "2016-03-18 00:45:00.000000"
Output for 7.0.2
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-21 11:20:29.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } string(26) "2016-03-21 11:20:29.000000"
Output for 7.0.1
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-23 11:31:52.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } string(26) "2016-03-23 11:31:52.000000"
Output for 7.0.0
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-26 14:04:54.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } string(26) "2016-03-26 14:04:54.000000"
Output for hhvm-3.12.0
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-30 14:06:54.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } Notice: Undefined property: DateTime::$date in /in/QBLPR on line 5 NULL
Output for hhvm-3.10.0
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-29 18:49:46.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } Notice: Undefined property: DateTime::$date in /in/QBLPR on line 23 NULL
Output for 5.6.21
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-05-01 20:53:45.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } string(26) "2016-05-01 20:53:45.000000"
Output for 5.6.20
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-09 10:22:35.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } string(26) "2016-04-09 10:22:35.000000"
Output for 5.6.19
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-06 22:30:08.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } string(26) "2016-03-06 22:30:08.000000"
Output for 5.6.18
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-14 10:11:02.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } string(26) "2016-03-14 10:11:02.000000"
Output for 5.6.17
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-19 05:14:08.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } string(26) "2016-03-19 05:14:08.000000"
Output for 5.6.16
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-27 15:48:51.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } string(26) "2016-03-27 15:48:51.000000"
Output for 5.6.15
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-28 16:43:15.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } string(26) "2016-03-28 16:43:15.000000"
Output for 5.6.14
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-01 19:23:23.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } string(26) "2016-04-01 19:23:23.000000"
Output for 5.6.13
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-14 23:10:55.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } string(26) "2016-04-14 23:10:55.000000"
Output for 5.6.12
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-19 12:18:08.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } string(26) "2016-04-19 12:18:08.000000"
Output for 5.6.11
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-22 19:34:25.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } string(26) "2016-04-22 19:34:25.000000"
Output for 5.6.10
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-24 21:14:17.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } string(26) "2016-04-24 21:14:17.000000"
Output for 5.6.9
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-27 02:22:34.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } string(26) "2016-04-27 02:22:34.000000"
Output for 5.6.8
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-29 09:55:24.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } string(26) "2016-04-29 09:55:24.000000"
Output for 5.6.7
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-05-24 20:36:24.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } string(26) "2016-05-24 20:36:24.000000"
Output for 5.5.35
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-05-22 00:10:03.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } string(26) "2016-05-22 00:10:03.000000"
Output for 5.5.34
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-10 16:17:44.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } string(26) "2016-04-10 16:17:44.000000"
Output for 5.5.33
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-08 11:27:47.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } string(26) "2016-03-08 11:27:47.000000"
Output for 5.5.32
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-16 17:04:11.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } string(26) "2016-03-16 17:04:11.000000"
Output for 5.5.31
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-20 08:07:29.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } string(26) "2016-03-20 08:07:29.000000"
Output for 5.5.30
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-31 18:45:39.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } string(26) "2016-03-31 18:45:39.000000"
Output for 5.5.29
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-16 13:16:30.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } string(26) "2016-04-16 13:16:30.000000"
Output for 5.5.28
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-20 15:31:18.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } string(26) "2016-04-20 15:31:18.000000"
Output for 5.5.27
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-21 18:06:27.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } string(26) "2016-04-21 18:06:27.000000"
Output for 5.5.26
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-25 23:31:23.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } string(26) "2016-04-25 23:31:23.000000"
Output for 5.5.25
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-28 05:38:41.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } string(26) "2016-04-28 05:38:41.000000"
Output for 5.5.24
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-30 13:12:34.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } string(26) "2016-04-30 13:12:34.000000"
Output for 5.4.45
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-09-21 11:26:45.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } string(26) "2015-09-21 11:26:45.000000"
Output for 5.4.44
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-08-12 06:35:23.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } string(26) "2015-08-12 06:35:23.000000"
Output for 5.4.43
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-08-12 06:35:19.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } string(26) "2015-08-12 06:35:19.000000"
Output for 5.4.42
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-08-12 06:35:18.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } string(26) "2015-08-12 06:35:18.000000"
Output for 5.4.41
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-06-07 14:19:50.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } string(26) "2015-06-07 14:19:50.000000"
Output for 5.4.40
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-05-14 08:10:20.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } string(26) "2015-05-14 08:10:20.000000"
Output for 5.4.39
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-05-14 08:10:19.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } string(26) "2015-05-14 08:10:19.000000"
Output for 5.4.38
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-02-28 00:28:30.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } string(26) "2015-02-28 00:28:30.000000"
Output for 5.4.36 - 5.4.37
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-02-04 01:19:01.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } string(26) "2015-02-04 01:19:01.000000"
Output for 5.4.35
object(DateTime)#1 (3) { ["date"]=> string(26) "2014-11-14 14:29:44.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } string(26) "2014-11-14 14:29:44.000000"
Output for 5.4.34
object(DateTime)#1 (3) { ["date"]=> string(26) "2014-11-14 00:36:04.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } string(26) "2014-11-14 00:36:04.000000"
Output for 5.4.32
object(DateTime)#1 (3) { ["date"]=> string(26) "2014-08-28 15:13:41.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } string(26) "2014-08-28 15:13:41.000000"
Output for 5.4.31
object(DateTime)#1 (3) { ["date"]=> string(26) "2014-07-30 16:41:31.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } string(26) "2014-07-30 16:41:31.000000"
Output for 5.4.30
object(DateTime)#1 (3) { ["date"]=> string(26) "2014-07-30 16:41:32.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } string(26) "2014-07-30 16:41:32.000000"
Output for 5.4.10 - 5.4.29
object(DateTime)#1 (3) { ["date"]=> string(19) "2014-07-30 16:41:32" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } string(19) "2014-07-30 16:41:32"
Output for 5.3.18 - 5.3.28, 5.4.0 - 5.4.9
object(DateTime)#1 (3) { ["date"]=> string(19) "2014-07-30 16:41:33" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } string(19) "2014-07-30 16:41:33"
Output for 5.3.29
object(DateTime)#1 (3) { ["date"]=> string(19) "2014-08-28 15:13:41" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } string(19) "2014-08-28 15:13:41"
Output for 5.3.0 - 5.3.17
object(DateTime)#1 (3) { ["date"]=> string(19) "2014-07-30 16:41:34" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } string(19) "2014-07-30 16:41:34"
Output for 5.2.6 - 5.2.17
object(DateTime)#1 (0) { } Notice: Undefined property: DateTime::$date in /in/QBLPR on line 5 NULL
Output for 5.2.0 - 5.2.5
object(DateTime)#1 (0) { } Notice: Undefined property: DateTime::$date in /in/QBLPR on line 5 NULL
Output for 5.0.0 - 5.1.6
Fatal error: Class 'DateTime' not found in /in/QBLPR on line 3
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Fatal error: Cannot instantiate non-existent class: datetime in /in/QBLPR on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot instantiate non-existent class: datetime in /in/QBLPR on line 3