3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $datetime = new DateTime(); echo $datetime->date; var_dump($datetime); echo $datetime->date;
Output for 7.1.0
Notice: Undefined property: DateTime::$date in /in/7sn3C on line 5 object(DateTime)#1 (3) { ["date"]=> string(26) "2013-10-23 23:01:56.003643" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } 2013-10-23 23:01:56.003643
Output for 5.6.28, 7.0.14
Notice: Undefined property: DateTime::$date in /in/7sn3C on line 5 object(DateTime)#1 (3) { ["date"]=> string(26) "2013-10-23 23:01:56.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } 2013-10-23 23:01:56.000000
Output for 7.0.6
Notice: Undefined property: DateTime::$date in /in/7sn3C on line 5 object(DateTime)#1 (3) { ["date"]=> string(26) "2016-05-03 01:29:35.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } 2016-05-03 01:29:35.000000
Output for 7.0.5
Notice: Undefined property: DateTime::$date in /in/7sn3C on line 5 object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-02 14:48:41.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } 2016-04-02 14:48:41.000000
Output for 7.0.4
Notice: Undefined property: DateTime::$date in /in/7sn3C on line 5 object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-09 23:51:23.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } 2016-03-09 23:51:23.000000
Output for 7.0.3
Notice: Undefined property: DateTime::$date in /in/7sn3C on line 5 object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-18 00:18:56.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } 2016-03-18 00:18:56.000000
Output for 7.0.2
Notice: Undefined property: DateTime::$date in /in/7sn3C on line 5 object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-21 10:57:49.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } 2016-03-21 10:57:49.000000
Output for 7.0.1
Notice: Undefined property: DateTime::$date in /in/7sn3C on line 5 object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-23 11:09:05.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } 2016-03-23 11:09:05.000000
Output for 7.0.0
Notice: Undefined property: DateTime::$date in /in/7sn3C on line 5 object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-26 13:43:54.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } 2016-03-26 13:43:54.000000
Output for hhvm-3.12.0
Notice: Undefined property: DateTime::$date in /in/7sn3C on line 5 object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-11 03:55:10.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } Notice: Undefined property: DateTime::$date in /in/7sn3C on line 9
Output for hhvm-3.10.0
Notice: Undefined property: DateTime::$date in /in/7sn3C on line 21 object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-29 18:19:33.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } Notice: Undefined property: DateTime::$date in /in/7sn3C on line 26
Output for 5.6.21
Notice: Undefined property: DateTime::$date in /in/7sn3C on line 5 object(DateTime)#1 (3) { ["date"]=> string(26) "2016-05-01 20:33:55.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } 2016-05-01 20:33:55.000000
Output for 5.6.20
Notice: Undefined property: DateTime::$date in /in/7sn3C on line 5 object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-09 10:03:41.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } 2016-04-09 10:03:41.000000
Output for 5.6.19
Notice: Undefined property: DateTime::$date in /in/7sn3C on line 5 object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-06 21:47:31.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } 2016-03-06 21:47:31.000000
Output for 5.6.18
Notice: Undefined property: DateTime::$date in /in/7sn3C on line 5 object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-14 09:47:50.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } 2016-03-14 09:47:50.000000
Output for 5.6.17
Notice: Undefined property: DateTime::$date in /in/7sn3C on line 5 object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-19 04:51:31.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } 2016-03-19 04:51:31.000000
Output for 5.6.16
Notice: Undefined property: DateTime::$date in /in/7sn3C on line 5 object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-27 15:28:31.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } 2016-03-27 15:28:31.000000
Output for 5.6.15
Notice: Undefined property: DateTime::$date in /in/7sn3C on line 5 object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-28 16:23:08.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } 2016-03-28 16:23:08.000000
Output for 5.6.14
Notice: Undefined property: DateTime::$date in /in/7sn3C on line 5 object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-01 19:04:13.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } 2016-04-01 19:04:13.000000
Output for 5.6.13
Notice: Undefined property: DateTime::$date in /in/7sn3C on line 5 object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-14 22:51:25.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } 2016-04-14 22:51:25.000000
Output for 5.6.12
Notice: Undefined property: DateTime::$date in /in/7sn3C on line 5 object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-19 11:57:37.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } 2016-04-19 11:57:37.000000
Output for 5.6.11
Notice: Undefined property: DateTime::$date in /in/7sn3C on line 5 object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-22 19:14:44.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } 2016-04-22 19:14:44.000000
Output for 5.6.10
Notice: Undefined property: DateTime::$date in /in/7sn3C on line 5 object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-24 20:53:49.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } 2016-04-24 20:53:49.000000
Output for 5.6.9
Notice: Undefined property: DateTime::$date in /in/7sn3C on line 5 object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-27 02:00:06.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } 2016-04-27 02:00:06.000000
Output for 5.6.8
Notice: Undefined property: DateTime::$date in /in/7sn3C on line 5 object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-29 09:34:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } 2016-04-29 09:34:00.000000
Output for 5.6.7
Notice: Undefined property: DateTime::$date in /in/7sn3C on line 5 object(DateTime)#1 (3) { ["date"]=> string(26) "2016-05-24 19:51:02.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } 2016-05-24 19:51:02.000000
Output for 5.5.35
Notice: Undefined property: DateTime::$date in /in/7sn3C on line 5 object(DateTime)#1 (3) { ["date"]=> string(26) "2016-05-21 23:47:42.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } 2016-05-21 23:47:42.000000
Output for 5.5.34
Notice: Undefined property: DateTime::$date in /in/7sn3C on line 5 object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-10 15:57:36.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } 2016-04-10 15:57:36.000000
Output for 5.5.33
Notice: Undefined property: DateTime::$date in /in/7sn3C on line 5 object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-08 11:06:05.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } 2016-03-08 11:06:05.000000
Output for 5.5.32
Notice: Undefined property: DateTime::$date in /in/7sn3C on line 5 object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-15 20:03:42.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } 2016-03-15 20:03:42.000000
Output for 5.5.31
Notice: Undefined property: DateTime::$date in /in/7sn3C on line 5 object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-20 07:45:05.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } 2016-03-20 07:45:05.000000
Output for 5.5.30
Notice: Undefined property: DateTime::$date in /in/7sn3C on line 5 object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-31 18:26:08.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } 2016-03-31 18:26:08.000000
Output for 5.5.29
Notice: Undefined property: DateTime::$date in /in/7sn3C on line 5 object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-16 12:56:21.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } 2016-04-16 12:56:21.000000
Output for 5.5.28
Notice: Undefined property: DateTime::$date in /in/7sn3C on line 5 object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-20 15:09:48.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } 2016-04-20 15:09:48.000000
Output for 5.5.27
Notice: Undefined property: DateTime::$date in /in/7sn3C on line 5 object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-21 17:46:15.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } 2016-04-21 17:46:15.000000
Output for 5.5.26
Notice: Undefined property: DateTime::$date in /in/7sn3C on line 5 object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-25 23:10:19.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } 2016-04-25 23:10:19.000000
Output for 5.5.25
Notice: Undefined property: DateTime::$date in /in/7sn3C on line 5 object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-28 05:17:15.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } 2016-04-28 05:17:15.000000
Output for 5.5.24
Notice: Undefined property: DateTime::$date in /in/7sn3C on line 5 object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-30 12:53:06.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } 2016-04-30 12:53:06.000000
Output for 5.4.44 - 5.4.45
Notice: Undefined property: DateTime::$date in /in/7sn3C on line 5 object(DateTime)#1 (3) { ["date"]=> string(26) "2015-11-18 06:21:38.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } 2015-11-18 06:21:38.000000
Output for 5.4.43
Notice: Undefined property: DateTime::$date in /in/7sn3C on line 5 object(DateTime)#1 (3) { ["date"]=> string(26) "2015-11-18 06:21:39.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } 2015-11-18 06:21:39.000000
Output for 5.4.41 - 5.4.42
Notice: Undefined property: DateTime::$date in /in/7sn3C on line 5 object(DateTime)#1 (3) { ["date"]=> string(26) "2015-11-18 06:21:40.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } 2015-11-18 06:21:40.000000
Output for 5.4.40
Notice: Undefined property: DateTime::$date in /in/7sn3C on line 5 object(DateTime)#1 (3) { ["date"]=> string(26) "2015-11-18 06:21:41.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } 2015-11-18 06:21:41.000000
Output for 5.4.38 - 5.4.39
Notice: Undefined property: DateTime::$date in /in/7sn3C on line 5 object(DateTime)#1 (3) { ["date"]=> string(26) "2015-11-18 06:21:42.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } 2015-11-18 06:21:42.000000
Output for 5.4.35 - 5.4.37
Notice: Undefined property: DateTime::$date in /in/7sn3C on line 5 object(DateTime)#1 (3) { ["date"]=> string(26) "2015-11-18 06:21:43.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } 2015-11-18 06:21:43.000000
Output for 5.4.34
Notice: Undefined property: DateTime::$date in /in/7sn3C on line 5 object(DateTime)#1 (3) { ["date"]=> string(26) "2015-11-18 06:21:44.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } 2015-11-18 06:21:44.000000
Output for 5.4.30 - 5.4.32
Notice: Undefined property: DateTime::$date in /in/7sn3C on line 5 object(DateTime)#1 (3) { ["date"]=> string(26) "2015-11-18 06:21:45.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } 2015-11-18 06:21:45.000000
Output for 5.3.29, 5.4.29
Notice: Undefined property: DateTime::$date in /in/7sn3C on line 5 object(DateTime)#1 (3) { ["date"]=> string(19) "2015-11-18 06:21:45" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } 2015-11-18 06:21:45
Output for 5.4.25 - 5.4.28
Notice: Undefined property: DateTime::$date in /in/7sn3C on line 5 object(DateTime)#1 (3) { ["date"]=> string(19) "2015-11-18 06:21:46" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } 2015-11-18 06:21:46
Output for 5.3.28, 5.4.23 - 5.4.24
Notice: Undefined property: DateTime::$date in /in/7sn3C on line 5 object(DateTime)#1 (3) { ["date"]=> string(19) "2015-11-18 06:21:47" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } 2015-11-18 06:21:47
Output for 5.4.19 - 5.4.22
Notice: Undefined property: DateTime::$date in /in/7sn3C on line 5 object(DateTime)#1 (3) { ["date"]=> string(19) "2015-11-18 06:21:48" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } 2015-11-18 06:21:48
Output for 5.3.26 - 5.3.27, 5.4.15 - 5.4.18
Notice: Undefined property: DateTime::$date in /in/7sn3C on line 5 object(DateTime)#1 (3) { ["date"]=> string(19) "2015-11-18 06:21:49" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } 2015-11-18 06:21:49
Output for 5.3.22 - 5.3.25, 5.4.12 - 5.4.14
Notice: Undefined property: DateTime::$date in /in/7sn3C on line 5 object(DateTime)#1 (3) { ["date"]=> string(19) "2015-11-18 06:21:50" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } 2015-11-18 06:21:50
Output for 5.3.19 - 5.3.21, 5.4.9 - 5.4.11
Notice: Undefined property: DateTime::$date in /in/7sn3C on line 5 object(DateTime)#1 (3) { ["date"]=> string(19) "2015-11-18 06:21:51" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } 2015-11-18 06:21:51
Output for 5.3.15 - 5.3.18, 5.4.5 - 5.4.8
Notice: Undefined property: DateTime::$date in /in/7sn3C on line 5 object(DateTime)#1 (3) { ["date"]=> string(19) "2015-11-18 06:21:52" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } 2015-11-18 06:21:52
Output for 5.3.11 - 5.3.14, 5.4.1 - 5.4.4
Notice: Undefined property: DateTime::$date in /in/7sn3C on line 5 object(DateTime)#1 (3) { ["date"]=> string(19) "2015-11-18 06:21:53" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } 2015-11-18 06:21:53
Output for 5.3.5 - 5.3.10, 5.4.0
Notice: Undefined property: DateTime::$date in /in/7sn3C on line 5 object(DateTime)#1 (3) { ["date"]=> string(19) "2015-11-18 06:21:54" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } 2015-11-18 06:21:54
Output for 5.3.2 - 5.3.4
Notice: Undefined property: DateTime::$date in /in/7sn3C on line 5 object(DateTime)#1 (3) { ["date"]=> string(19) "2015-11-18 06:21:55" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } 2015-11-18 06:21:55
Output for 5.3.0 - 5.3.1
Notice: Undefined property: DateTime::$date in /in/7sn3C on line 5 object(DateTime)#1 (3) { ["date"]=> string(19) "2015-11-18 06:21:56" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } 2015-11-18 06:21:56
Output for 5.2.6 - 5.2.17
Notice: Undefined property: DateTime::$date in /in/7sn3C on line 5 object(DateTime)#1 (0) { } Notice: Undefined property: DateTime::$date in /in/7sn3C on line 9
Output for 5.2.0 - 5.2.5
Notice: Undefined property: DateTime::$date in /in/7sn3C on line 5 object(DateTime)#1 (0) { } Notice: Undefined property: DateTime::$date in /in/7sn3C on line 9
Output for 5.0.0 - 5.1.6
Fatal error: Class 'DateTime' not found in /in/7sn3C 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/7sn3C 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/7sn3C on line 3