3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $d = new DateTime(); var_dump(property_exists($d, 'date')); var_dump($d); var_dump(property_exists($d, 'date'));
Output for 7.1.0
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2014-07-09 12:24:13.003979" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.6.28, 7.0.14
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2014-07-09 12:24:13.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 7.0.6
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2016-05-03 00:35:05.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 7.0.5
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-02 14:07:53.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 7.0.4
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-09 23:06:08.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 7.0.3
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-17 23:31:08.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 7.0.2
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-21 10:13:44.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 7.0.1
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-23 09:52:59.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 7.0.0
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-26 12:57:15.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.6.21
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2016-05-01 19:40:13.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.6.20
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-09 09:23:14.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.6.19
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-06 20:32:11.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.6.18
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-14 09:01:40.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.6.17
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-19 04:06:38.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.6.16
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-27 14:41:32.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.6.15
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-28 15:40:27.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.6.14
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-01 18:22:07.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.6.13
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-14 22:18:59.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.6.12
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-19 11:23:11.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.6.11
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-22 18:41:11.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.6.10
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-24 20:19:25.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.6.9
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-27 01:24:17.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.6.8
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-29 08:58:17.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.6.7
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2016-05-24 18:49:55.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.5.35
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2016-05-21 22:53:48.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.5.34
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-10 15:11:05.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.5.33
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-08 10:17:41.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.5.32
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-15 19:19:40.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.5.31
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-20 07:00:54.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.5.30
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-31 17:44:43.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.5.29
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-16 12:22:02.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.5.28
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-20 14:33:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.5.27
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-21 17:12:15.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.5.26
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-25 22:34:05.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.5.25
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-28 04:41:03.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.5.24
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-30 12:19:35.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.4.45
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2015-09-12 05:51:24.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.4.44
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2015-09-12 05:51:21.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.4.43
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2015-09-12 05:51:17.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.4.42
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2015-07-08 20:02:13.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.4.41
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2015-05-26 07:43:58.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.4.40
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2015-05-02 11:00:45.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.4.39
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2015-05-02 11:00:44.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.4.38
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2015-03-01 00:35:42.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.4.37
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2015-02-06 08:47:51.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.4.36
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2015-02-06 08:47:50.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.4.35
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2014-11-16 09:43:55.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.4.34
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2014-11-16 09:43:54.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.4.32
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2014-09-04 09:32:48.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.4.31
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2014-09-04 09:32:47.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.4.30
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2014-07-09 12:24:18.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.4.26 - 5.4.29
bool(false) object(DateTime)#1 (3) { ["date"]=> string(19) "2014-07-09 12:24:18" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.4.17 - 5.4.25
bool(false) object(DateTime)#1 (3) { ["date"]=> string(19) "2014-07-09 12:24:19" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.4.8 - 5.4.16
bool(false) object(DateTime)#1 (3) { ["date"]=> string(19) "2014-07-09 12:24:20" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.3.28, 5.4.0 - 5.4.7
bool(false) object(DateTime)#1 (3) { ["date"]=> string(19) "2014-07-09 12:24:21" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.3.29
bool(false) object(DateTime)#1 (3) { ["date"]=> string(19) "2014-09-04 09:32:45" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.3.21 - 5.3.27
bool(false) object(DateTime)#1 (3) { ["date"]=> string(19) "2014-07-09 12:24:22" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.3.10 - 5.3.20
bool(false) object(DateTime)#1 (3) { ["date"]=> string(19) "2014-07-09 12:24:23" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.3.0 - 5.3.9
bool(false) object(DateTime)#1 (3) { ["date"]=> string(19) "2014-07-09 12:24:24" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.2.0 - 5.2.17
bool(false) object(DateTime)#1 (0) { } bool(false)
Output for 5.0.0 - 5.1.6
Fatal error: Class 'DateTime' not found in /in/KQcOu 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/KQcOu 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/KQcOu on line 3