3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $d = new DateTime(); var_dump($d->date); var_dump($d); var_dump($d->date);
Output for 7.1.0
Notice: Undefined property: DateTime::$date in /in/UocRc on line 4 NULL object(DateTime)#1 (3) { ["date"]=> string(26) "2014-07-09 12:25:13.003983" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } string(26) "2014-07-09 12:25:13.003983"
Output for 5.6.28, 7.0.14
Notice: Undefined property: DateTime::$date in /in/UocRc on line 4 NULL object(DateTime)#1 (3) { ["date"]=> string(26) "2014-07-09 12:25:13.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } string(26) "2014-07-09 12:25:13.000000"
Output for 7.0.6
Notice: Undefined property: DateTime::$date in /in/UocRc on line 4 NULL object(DateTime)#1 (3) { ["date"]=> string(26) "2016-05-21 18:15:03.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } string(26) "2016-05-21 18:15:03.000000"
Output for 7.0.5
Notice: Undefined property: DateTime::$date in /in/UocRc on line 4 NULL object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-14 15:32:22.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } string(26) "2016-04-14 15:32:22.000000"
Output for 7.0.4
Notice: Undefined property: DateTime::$date in /in/UocRc on line 4 NULL object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-10 06:11:06.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } string(26) "2016-03-10 06:11:06.000000"
Output for 7.0.3
Notice: Undefined property: DateTime::$date in /in/UocRc on line 4 NULL object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-18 06:38:14.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } string(26) "2016-03-18 06:38:14.000000"
Output for 7.0.2
Notice: Undefined property: DateTime::$date in /in/UocRc on line 4 NULL object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-22 12:11:11.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } string(26) "2016-03-22 12:11:11.000000"
Output for 7.0.1
Notice: Undefined property: DateTime::$date in /in/UocRc on line 4 NULL object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-23 17:33:06.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } string(26) "2016-03-23 17:33:06.000000"
Output for 7.0.0
Notice: Undefined property: DateTime::$date in /in/UocRc on line 4 NULL object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-27 13:08:19.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } string(26) "2016-03-27 13:08:19.000000"
Output for hhvm-3.12.0
Notice: Undefined property: DateTime::$date in /in/UocRc on line 4 NULL object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-11 15:21:42.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } Notice: Undefined property: DateTime::$date in /in/UocRc on line 6 NULL
Output for hhvm-3.10.0
Notice: Undefined property: DateTime::$date in /in/UocRc on line 4 NULL object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-31 15:46:43.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } Notice: Undefined property: DateTime::$date in /in/UocRc on line 6 NULL
Output for 5.6.21
Notice: Undefined property: DateTime::$date in /in/UocRc on line 4 NULL object(DateTime)#1 (3) { ["date"]=> string(26) "2016-05-02 20:31:50.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } string(26) "2016-05-02 20:31:50.000000"
Output for 5.6.20
Notice: Undefined property: DateTime::$date in /in/UocRc on line 4 NULL object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-10 12:32:38.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } string(26) "2016-04-10 12:32:38.000000"
Output for 5.6.19
Notice: Undefined property: DateTime::$date in /in/UocRc on line 4 NULL object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-07 07:42:05.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } string(26) "2016-03-07 07:42:05.000000"
Output for 5.6.18
Notice: Undefined property: DateTime::$date in /in/UocRc on line 4 NULL object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-14 20:16:16.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } string(26) "2016-03-14 20:16:16.000000"
Output for 5.6.17
Notice: Undefined property: DateTime::$date in /in/UocRc on line 4 NULL object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-19 10:58:28.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } string(26) "2016-03-19 10:58:28.000000"
Output for 5.6.16
Notice: Undefined property: DateTime::$date in /in/UocRc on line 4 NULL object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-28 13:57:29.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } string(26) "2016-03-28 13:57:29.000000"
Output for 5.6.15
Notice: Undefined property: DateTime::$date in /in/UocRc on line 4 NULL object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-29 14:46:48.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } string(26) "2016-03-29 14:46:48.000000"
Output for 5.6.14
Notice: Undefined property: DateTime::$date in /in/UocRc on line 4 NULL object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-14 20:28:21.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } string(26) "2016-04-14 20:28:21.000000"
Output for 5.6.13
Notice: Undefined property: DateTime::$date in /in/UocRc on line 4 NULL object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-15 21:14:16.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } string(26) "2016-04-15 21:14:16.000000"
Output for 5.6.12
Notice: Undefined property: DateTime::$date in /in/UocRc on line 4 NULL object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-20 12:14:59.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } string(26) "2016-04-20 12:14:59.000000"
Output for 5.6.11
Notice: Undefined property: DateTime::$date in /in/UocRc on line 4 NULL object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-24 18:11:42.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } string(26) "2016-04-24 18:11:42.000000"
Output for 5.6.10
Notice: Undefined property: DateTime::$date in /in/UocRc on line 4 NULL object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-25 20:18:43.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } string(26) "2016-04-25 20:18:43.000000"
Output for 5.6.9
Notice: Undefined property: DateTime::$date in /in/UocRc on line 4 NULL object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-28 02:15:35.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } string(26) "2016-04-28 02:15:35.000000"
Output for 5.6.8
Notice: Undefined property: DateTime::$date in /in/UocRc on line 4 NULL object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-30 10:06:30.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } string(26) "2016-04-30 10:06:30.000000"
Output for 5.5.35
Notice: Undefined property: DateTime::$date in /in/UocRc on line 4 NULL object(DateTime)#1 (3) { ["date"]=> string(26) "2016-05-23 09:13:29.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } string(26) "2016-05-23 09:13:29.000000"
Output for 5.5.34
Notice: Undefined property: DateTime::$date in /in/UocRc on line 4 NULL object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-11 14:48:02.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } string(26) "2016-04-11 14:48:02.000000"
Output for 5.5.33
Notice: Undefined property: DateTime::$date in /in/UocRc on line 4 NULL object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-08 17:05:27.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } string(26) "2016-03-08 17:05:27.000000"
Output for 5.5.32
Notice: Undefined property: DateTime::$date in /in/UocRc on line 4 NULL object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-16 23:07:45.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } string(26) "2016-03-16 23:07:45.000000"
Output for 5.5.31
Notice: Undefined property: DateTime::$date in /in/UocRc on line 4 NULL object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-20 13:47:10.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } string(26) "2016-03-20 13:47:10.000000"
Output for 5.5.30
Notice: Undefined property: DateTime::$date in /in/UocRc on line 4 NULL object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-01 16:36:06.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } string(26) "2016-04-01 16:36:06.000000"
Output for 5.5.29
Notice: Undefined property: DateTime::$date in /in/UocRc on line 4 NULL object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-17 11:24:53.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } string(26) "2016-04-17 11:24:53.000000"
Output for 5.5.28
Notice: Undefined property: DateTime::$date in /in/UocRc on line 4 NULL object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-21 15:05:41.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } string(26) "2016-04-21 15:05:41.000000"
Output for 5.5.27
Notice: Undefined property: DateTime::$date in /in/UocRc on line 4 NULL object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-22 16:37:56.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } string(26) "2016-04-22 16:37:56.000000"
Output for 5.5.26
Notice: Undefined property: DateTime::$date in /in/UocRc on line 4 NULL object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-26 23:00:22.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } string(26) "2016-04-26 23:00:22.000000"
Output for 5.5.25
Notice: Undefined property: DateTime::$date in /in/UocRc on line 4 NULL object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-29 06:34:28.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } string(26) "2016-04-29 06:34:28.000000"
Output for 5.5.24
Notice: Undefined property: DateTime::$date in /in/UocRc on line 4 NULL object(DateTime)#1 (3) { ["date"]=> string(26) "2016-05-24 13:34:44.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } string(26) "2016-05-24 13:34:44.000000"
Output for 5.4.45
Notice: Undefined property: DateTime::$date in /in/UocRc on line 4 NULL object(DateTime)#1 (3) { ["date"]=> string(26) "2015-09-21 00:38:36.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } string(26) "2015-09-21 00:38:36.000000"
Output for 5.4.44
Notice: Undefined property: DateTime::$date in /in/UocRc on line 4 NULL object(DateTime)#1 (3) { ["date"]=> string(26) "2015-09-21 00:37:41.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } string(26) "2015-09-21 00:37:41.000000"
Output for 5.4.43
Notice: Undefined property: DateTime::$date in /in/UocRc on line 4 NULL object(DateTime)#1 (3) { ["date"]=> string(26) "2015-09-21 00:36:41.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } string(26) "2015-09-21 00:36:41.000000"
Output for 5.4.42
Notice: Undefined property: DateTime::$date in /in/UocRc on line 4 NULL object(DateTime)#1 (3) { ["date"]=> string(26) "2015-09-21 00:36:22.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } string(26) "2015-09-21 00:36:22.000000"
Output for 5.4.41
Notice: Undefined property: DateTime::$date in /in/UocRc on line 4 NULL object(DateTime)#1 (3) { ["date"]=> string(26) "2015-09-21 00:36:01.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } string(26) "2015-09-21 00:36:01.000000"
Output for 5.4.40
Notice: Undefined property: DateTime::$date in /in/UocRc on line 4 NULL object(DateTime)#1 (3) { ["date"]=> string(26) "2015-09-21 00:35:40.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } string(26) "2015-09-21 00:35:40.000000"
Output for 5.4.39
Notice: Undefined property: DateTime::$date in /in/UocRc on line 4 NULL object(DateTime)#1 (3) { ["date"]=> string(26) "2015-09-21 00:35:22.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } string(26) "2015-09-21 00:35:22.000000"
Output for 5.4.38
Notice: Undefined property: DateTime::$date in /in/UocRc on line 4 NULL object(DateTime)#1 (3) { ["date"]=> string(26) "2015-03-04 18:29:16.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } string(26) "2015-03-04 18:29:16.000000"
Output for 5.4.35 - 5.4.37
Notice: Undefined property: DateTime::$date in /in/UocRc on line 4 NULL object(DateTime)#1 (3) { ["date"]=> string(26) "2015-03-04 18:29:09.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } string(26) "2015-03-04 18:29:09.000000"
Output for 5.4.34
Notice: Undefined property: DateTime::$date in /in/UocRc on line 4 NULL object(DateTime)#1 (3) { ["date"]=> string(26) "2015-03-04 18:29:08.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } string(26) "2015-03-04 18:29:08.000000"
Output for 5.4.32
Notice: Undefined property: DateTime::$date in /in/UocRc on line 4 NULL object(DateTime)#1 (3) { ["date"]=> string(26) "2014-09-13 17:20:31.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } string(26) "2014-09-13 17:20:31.000000"
Output for 5.4.31
Notice: Undefined property: DateTime::$date in /in/UocRc on line 4 NULL object(DateTime)#1 (3) { ["date"]=> string(26) "2014-09-13 17:20:30.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } string(26) "2014-09-13 17:20:30.000000"
Output for 5.4.30
Notice: Undefined property: DateTime::$date in /in/UocRc on line 4 NULL object(DateTime)#1 (3) { ["date"]=> string(26) "2014-07-09 12:25:18.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } string(26) "2014-07-09 12:25:18.000000"
Output for 5.4.20 - 5.4.29
Notice: Undefined property: DateTime::$date in /in/UocRc on line 4 NULL object(DateTime)#1 (3) { ["date"]=> string(19) "2014-07-09 12:25:18" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } string(19) "2014-07-09 12:25:18"
Output for 5.4.7 - 5.4.19
Notice: Undefined property: DateTime::$date in /in/UocRc on line 4 NULL object(DateTime)#1 (3) { ["date"]=> string(19) "2014-07-09 12:25:19" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } string(19) "2014-07-09 12:25:19"
Output for 5.3.21 - 5.3.28, 5.4.0 - 5.4.6
Notice: Undefined property: DateTime::$date in /in/UocRc on line 4 NULL object(DateTime)#1 (3) { ["date"]=> string(19) "2014-07-09 12:25:20" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } string(19) "2014-07-09 12:25:20"
Output for 5.3.29
Notice: Undefined property: DateTime::$date in /in/UocRc on line 4 NULL object(DateTime)#1 (3) { ["date"]=> string(19) "2014-09-13 17:20:28" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } string(19) "2014-09-13 17:20:28"
Output for 5.3.8 - 5.3.20
Notice: Undefined property: DateTime::$date in /in/UocRc on line 4 NULL object(DateTime)#1 (3) { ["date"]=> string(19) "2014-07-09 12:25:21" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } string(19) "2014-07-09 12:25:21"
Output for 5.3.0 - 5.3.7
Notice: Undefined property: DateTime::$date in /in/UocRc on line 4 NULL object(DateTime)#1 (3) { ["date"]=> string(19) "2014-07-09 12:25:22" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } string(19) "2014-07-09 12:25:22"
Output for 5.2.6 - 5.2.17
Notice: Undefined property: DateTime::$date in /in/UocRc on line 4 NULL object(DateTime)#1 (0) { } Notice: Undefined property: DateTime::$date in /in/UocRc on line 6 NULL
Output for 5.2.0 - 5.2.5
Notice: Undefined property: DateTime::$date in /in/UocRc on line 4 NULL object(DateTime)#1 (0) { } Notice: Undefined property: DateTime::$date in /in/UocRc on line 6 NULL
Output for 5.0.0 - 5.1.6
Fatal error: Class 'DateTime' not found in /in/UocRc 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/UocRc 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/UocRc on line 3