3v4l.org

run code in 200+ 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.3.1
Notice: Undefined property: DateTime::$date in /in/cpUct on line 4 Warning: property_exists() expects exactly 2 parameters, 1 given in /in/cpUct on line 4 NULL object(DateTime)#1 (3) { ["date"]=> string(26) "2014-07-09 12:23:41.016909" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } Warning: property_exists() expects exactly 2 parameters, 1 given in /in/cpUct on line 6 NULL
Output for 7.3.0
Notice: Undefined property: DateTime::$date in /in/cpUct on line 4 Warning: property_exists() expects exactly 2 parameters, 1 given in /in/cpUct on line 4 NULL object(DateTime)#1 (3) { ["date"]=> string(26) "2014-07-09 12:23:41.000088" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } Warning: property_exists() expects exactly 2 parameters, 1 given in /in/cpUct on line 6 NULL
Output for 7.2.13
Notice: Undefined property: DateTime::$date in /in/cpUct on line 4 Warning: property_exists() expects exactly 2 parameters, 1 given in /in/cpUct on line 4 NULL object(DateTime)#1 (3) { ["date"]=> string(26) "2014-07-09 12:23:41.020455" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } Warning: property_exists() expects exactly 2 parameters, 1 given in /in/cpUct on line 6 NULL
Output for 7.2.12
Notice: Undefined property: DateTime::$date in /in/cpUct on line 4 Warning: property_exists() expects exactly 2 parameters, 1 given in /in/cpUct on line 4 NULL object(DateTime)#1 (3) { ["date"]=> string(26) "2014-07-09 12:23:41.056154" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } Warning: property_exists() expects exactly 2 parameters, 1 given in /in/cpUct on line 6 NULL
Output for 7.2.11
Notice: Undefined property: DateTime::$date in /in/cpUct on line 4 Warning: property_exists() expects exactly 2 parameters, 1 given in /in/cpUct on line 4 NULL object(DateTime)#1 (3) { ["date"]=> string(26) "2014-07-09 12:23:41.118880" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } Warning: property_exists() expects exactly 2 parameters, 1 given in /in/cpUct on line 6 NULL
Output for 7.2.10
Notice: Undefined property: DateTime::$date in /in/cpUct on line 4 Warning: property_exists() expects exactly 2 parameters, 1 given in /in/cpUct on line 4 NULL object(DateTime)#1 (3) { ["date"]=> string(26) "2014-07-09 12:23:41.014506" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } Warning: property_exists() expects exactly 2 parameters, 1 given in /in/cpUct on line 6 NULL
Output for 7.2.9
Notice: Undefined property: DateTime::$date in /in/cpUct on line 4 Warning: property_exists() expects exactly 2 parameters, 1 given in /in/cpUct on line 4 NULL object(DateTime)#1 (3) { ["date"]=> string(26) "2014-07-09 12:23:41.131624" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } Warning: property_exists() expects exactly 2 parameters, 1 given in /in/cpUct on line 6 NULL
Output for 7.2.8
Notice: Undefined property: DateTime::$date in /in/cpUct on line 4 Warning: property_exists() expects exactly 2 parameters, 1 given in /in/cpUct on line 4 NULL object(DateTime)#1 (3) { ["date"]=> string(26) "2014-07-09 12:23:41.069978" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } Warning: property_exists() expects exactly 2 parameters, 1 given in /in/cpUct on line 6 NULL
Output for 7.2.7
Notice: Undefined property: DateTime::$date in /in/cpUct on line 4 Warning: property_exists() expects exactly 2 parameters, 1 given in /in/cpUct on line 4 NULL object(DateTime)#1 (3) { ["date"]=> string(26) "2014-07-09 12:23:41.204129" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } Warning: property_exists() expects exactly 2 parameters, 1 given in /in/cpUct on line 6 NULL
Output for 7.2.6
Notice: Undefined property: DateTime::$date in /in/cpUct on line 4 Warning: property_exists() expects exactly 2 parameters, 1 given in /in/cpUct on line 4 NULL object(DateTime)#1 (3) { ["date"]=> string(26) "2014-07-09 12:23:41.091650" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } Warning: property_exists() expects exactly 2 parameters, 1 given in /in/cpUct on line 6 NULL
Output for 7.2.5
Notice: Undefined property: DateTime::$date in /in/cpUct on line 4 Warning: property_exists() expects exactly 2 parameters, 1 given in /in/cpUct on line 4 NULL object(DateTime)#1 (3) { ["date"]=> string(26) "2014-07-09 12:23:41.038039" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } Warning: property_exists() expects exactly 2 parameters, 1 given in /in/cpUct on line 6 NULL
Output for 7.2.4
Notice: Undefined property: DateTime::$date in /in/cpUct on line 4 Warning: property_exists() expects exactly 2 parameters, 1 given in /in/cpUct on line 4 NULL object(DateTime)#1 (3) { ["date"]=> string(26) "2014-07-09 12:23:41.028188" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } Warning: property_exists() expects exactly 2 parameters, 1 given in /in/cpUct on line 6 NULL
Output for 7.2.3
Notice: Undefined property: DateTime::$date in /in/cpUct on line 4 Warning: property_exists() expects exactly 2 parameters, 1 given in /in/cpUct on line 4 NULL object(DateTime)#1 (3) { ["date"]=> string(26) "2014-07-09 12:23:41.214403" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } Warning: property_exists() expects exactly 2 parameters, 1 given in /in/cpUct on line 6 NULL
Output for 7.2.2
Notice: Undefined property: DateTime::$date in /in/cpUct on line 4 Warning: property_exists() expects exactly 2 parameters, 1 given in /in/cpUct on line 4 NULL object(DateTime)#1 (3) { ["date"]=> string(26) "2014-07-09 12:23:41.066941" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } Warning: property_exists() expects exactly 2 parameters, 1 given in /in/cpUct on line 6 NULL
Output for 7.2.1
Notice: Undefined property: DateTime::$date in /in/cpUct on line 4 Warning: property_exists() expects exactly 2 parameters, 1 given in /in/cpUct on line 4 NULL object(DateTime)#1 (3) { ["date"]=> string(26) "2014-07-09 12:23:41.000084" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } Warning: property_exists() expects exactly 2 parameters, 1 given in /in/cpUct on line 6 NULL
Output for 7.2.0
Notice: Undefined property: DateTime::$date in /in/cpUct on line 4 Warning: property_exists() expects exactly 2 parameters, 1 given in /in/cpUct on line 4 NULL object(DateTime)#1 (3) { ["date"]=> string(26) "2014-07-09 12:23:41.000116" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } Warning: property_exists() expects exactly 2 parameters, 1 given in /in/cpUct on line 6 NULL
Output for 7.1.25
Notice: Undefined property: DateTime::$date in /in/cpUct on line 4 Warning: property_exists() expects exactly 2 parameters, 1 given in /in/cpUct on line 4 NULL object(DateTime)#1 (3) { ["date"]=> string(26) "2014-07-09 12:23:41.109137" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } Warning: property_exists() expects exactly 2 parameters, 1 given in /in/cpUct on line 6 NULL
Output for 7.1.24
Notice: Undefined property: DateTime::$date in /in/cpUct on line 4 Warning: property_exists() expects exactly 2 parameters, 1 given in /in/cpUct on line 4 NULL object(DateTime)#1 (3) { ["date"]=> string(26) "2014-07-09 12:23:41.019275" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } Warning: property_exists() expects exactly 2 parameters, 1 given in /in/cpUct on line 6 NULL
Output for 7.1.23
Notice: Undefined property: DateTime::$date in /in/cpUct on line 4 Warning: property_exists() expects exactly 2 parameters, 1 given in /in/cpUct on line 4 NULL object(DateTime)#1 (3) { ["date"]=> string(26) "2014-07-09 12:23:41.021627" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } Warning: property_exists() expects exactly 2 parameters, 1 given in /in/cpUct on line 6 NULL
Output for 7.1.22
Notice: Undefined property: DateTime::$date in /in/cpUct on line 4 Warning: property_exists() expects exactly 2 parameters, 1 given in /in/cpUct on line 4 NULL object(DateTime)#1 (3) { ["date"]=> string(26) "2014-07-09 12:23:41.070616" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } Warning: property_exists() expects exactly 2 parameters, 1 given in /in/cpUct on line 6 NULL
Output for 7.1.21
Notice: Undefined property: DateTime::$date in /in/cpUct on line 4 Warning: property_exists() expects exactly 2 parameters, 1 given in /in/cpUct on line 4 NULL object(DateTime)#1 (3) { ["date"]=> string(26) "2014-07-09 12:23:41.032758" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } Warning: property_exists() expects exactly 2 parameters, 1 given in /in/cpUct on line 6 NULL
Output for 7.1.20
Notice: Undefined property: DateTime::$date in /in/cpUct on line 4 Warning: property_exists() expects exactly 2 parameters, 1 given in /in/cpUct on line 4 NULL object(DateTime)#1 (3) { ["date"]=> string(26) "2014-07-09 12:23:41.126587" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } Warning: property_exists() expects exactly 2 parameters, 1 given in /in/cpUct on line 6 NULL
Output for 7.1.19
Notice: Undefined property: DateTime::$date in /in/cpUct on line 4 Warning: property_exists() expects exactly 2 parameters, 1 given in /in/cpUct on line 4 NULL object(DateTime)#1 (3) { ["date"]=> string(26) "2014-07-09 12:23:41.126556" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } Warning: property_exists() expects exactly 2 parameters, 1 given in /in/cpUct on line 6 NULL
Output for 7.1.18
Notice: Undefined property: DateTime::$date in /in/cpUct on line 4 Warning: property_exists() expects exactly 2 parameters, 1 given in /in/cpUct on line 4 NULL object(DateTime)#1 (3) { ["date"]=> string(26) "2014-07-09 12:23:41.337227" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } Warning: property_exists() expects exactly 2 parameters, 1 given in /in/cpUct on line 6 NULL
Output for 7.1.17
Notice: Undefined property: DateTime::$date in /in/cpUct on line 4 Warning: property_exists() expects exactly 2 parameters, 1 given in /in/cpUct on line 4 NULL object(DateTime)#1 (3) { ["date"]=> string(26) "2014-07-09 12:23:41.297541" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } Warning: property_exists() expects exactly 2 parameters, 1 given in /in/cpUct on line 6 NULL
Output for 7.1.16
Notice: Undefined property: DateTime::$date in /in/cpUct on line 4 Warning: property_exists() expects exactly 2 parameters, 1 given in /in/cpUct on line 4 NULL object(DateTime)#1 (3) { ["date"]=> string(26) "2014-07-09 12:23:41.052639" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } Warning: property_exists() expects exactly 2 parameters, 1 given in /in/cpUct on line 6 NULL
Output for 7.1.15
Notice: Undefined property: DateTime::$date in /in/cpUct on line 4 Warning: property_exists() expects exactly 2 parameters, 1 given in /in/cpUct on line 4 NULL object(DateTime)#1 (3) { ["date"]=> string(26) "2014-07-09 12:23:41.034893" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } Warning: property_exists() expects exactly 2 parameters, 1 given in /in/cpUct on line 6 NULL
Output for 7.1.14
Notice: Undefined property: DateTime::$date in /in/cpUct on line 4 Warning: property_exists() expects exactly 2 parameters, 1 given in /in/cpUct on line 4 NULL object(DateTime)#1 (3) { ["date"]=> string(26) "2014-07-09 12:23:41.120771" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } Warning: property_exists() expects exactly 2 parameters, 1 given in /in/cpUct on line 6 NULL
Output for 7.1.13
Notice: Undefined property: DateTime::$date in /in/cpUct on line 4 Warning: property_exists() expects exactly 2 parameters, 1 given in /in/cpUct on line 4 NULL object(DateTime)#1 (3) { ["date"]=> string(26) "2014-07-09 12:23:41.155414" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } Warning: property_exists() expects exactly 2 parameters, 1 given in /in/cpUct on line 6 NULL
Output for 7.1.12
Notice: Undefined property: DateTime::$date in /in/cpUct on line 4 Warning: property_exists() expects exactly 2 parameters, 1 given in /in/cpUct on line 4 NULL object(DateTime)#1 (3) { ["date"]=> string(26) "2014-07-09 12:23:41.105782" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } Warning: property_exists() expects exactly 2 parameters, 1 given in /in/cpUct on line 6 NULL
Output for 7.1.11
Notice: Undefined property: DateTime::$date in /in/cpUct on line 4 Warning: property_exists() expects exactly 2 parameters, 1 given in /in/cpUct on line 4 NULL object(DateTime)#1 (3) { ["date"]=> string(26) "2014-07-09 12:23:41.156741" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } Warning: property_exists() expects exactly 2 parameters, 1 given in /in/cpUct on line 6 NULL
Output for 7.1.10
Notice: Undefined property: DateTime::$date in /in/cpUct on line 4 Warning: property_exists() expects exactly 2 parameters, 1 given in /in/cpUct on line 4 NULL object(DateTime)#1 (3) { ["date"]=> string(26) "2014-07-09 12:23:41.019091" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } Warning: property_exists() expects exactly 2 parameters, 1 given in /in/cpUct on line 6 NULL
Output for 7.1.9
Notice: Undefined property: DateTime::$date in /in/cpUct on line 4 Warning: property_exists() expects exactly 2 parameters, 1 given in /in/cpUct on line 4 NULL object(DateTime)#1 (3) { ["date"]=> string(26) "2014-07-09 12:23:41.022802" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } Warning: property_exists() expects exactly 2 parameters, 1 given in /in/cpUct on line 6 NULL
Output for 7.1.8
Notice: Undefined property: DateTime::$date in /in/cpUct on line 4 Warning: property_exists() expects exactly 2 parameters, 1 given in /in/cpUct on line 4 NULL object(DateTime)#1 (3) { ["date"]=> string(26) "2014-07-09 12:23:41.000111" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } Warning: property_exists() expects exactly 2 parameters, 1 given in /in/cpUct on line 6 NULL
Output for 7.1.7
Notice: Undefined property: DateTime::$date in /in/cpUct on line 4 Warning: property_exists() expects exactly 2 parameters, 1 given in /in/cpUct on line 4 NULL object(DateTime)#1 (3) { ["date"]=> string(26) "2014-07-09 12:23:41.023429" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } Warning: property_exists() expects exactly 2 parameters, 1 given in /in/cpUct on line 6 NULL
Output for 7.1.6
Notice: Undefined property: DateTime::$date in /in/cpUct on line 4 Warning: property_exists() expects exactly 2 parameters, 1 given in /in/cpUct on line 4 NULL object(DateTime)#1 (3) { ["date"]=> string(26) "2014-07-09 12:23:41.019711" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } Warning: property_exists() expects exactly 2 parameters, 1 given in /in/cpUct on line 6 NULL
Output for 7.1.5
Notice: Undefined property: DateTime::$date in /in/cpUct on line 4 Warning: property_exists() expects exactly 2 parameters, 1 given in /in/cpUct on line 4 NULL object(DateTime)#1 (3) { ["date"]=> string(26) "2014-07-09 12:23:41.000101" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } Warning: property_exists() expects exactly 2 parameters, 1 given in /in/cpUct on line 6 NULL
Output for 7.1.4
Notice: Undefined property: DateTime::$date in /in/cpUct on line 4 Warning: property_exists() expects exactly 2 parameters, 1 given in /in/cpUct on line 4 NULL object(DateTime)#1 (3) { ["date"]=> string(26) "2014-07-09 12:23:41.041019" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } Warning: property_exists() expects exactly 2 parameters, 1 given in /in/cpUct on line 6 NULL
Output for 5.4.30 - 5.4.45, 5.5.14 - 5.5.36, 5.5.38 - 5.6.6, 5.6.8 - 7.0.33, 7.1.3
Notice: Undefined property: DateTime::$date in /in/cpUct on line 4 Warning: property_exists() expects exactly 2 parameters, 1 given in /in/cpUct on line 4 NULL object(DateTime)#1 (3) { ["date"]=> string(26) "2014-07-09 12:23:41.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } Warning: property_exists() expects exactly 2 parameters, 1 given in /in/cpUct on line 6 NULL
Output for 7.1.2
Notice: Undefined property: DateTime::$date in /in/cpUct on line 4 Warning: property_exists() expects exactly 2 parameters, 1 given in /in/cpUct on line 4 NULL object(DateTime)#1 (3) { ["date"]=> string(26) "2014-07-09 12:23:42.054712" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } Warning: property_exists() expects exactly 2 parameters, 1 given in /in/cpUct on line 6 NULL
Output for 7.1.1
Notice: Undefined property: DateTime::$date in /in/cpUct on line 4 Warning: property_exists() expects exactly 2 parameters, 1 given in /in/cpUct on line 4 NULL object(DateTime)#1 (3) { ["date"]=> string(26) "2014-07-09 12:23:41.026287" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } Warning: property_exists() expects exactly 2 parameters, 1 given in /in/cpUct on line 6 NULL
Output for 7.1.0
Notice: Undefined property: DateTime::$date in /in/cpUct on line 4 Warning: property_exists() expects exactly 2 parameters, 1 given in /in/cpUct on line 4 NULL object(DateTime)#1 (3) { ["date"]=> string(26) "2014-07-09 12:23:41.032764" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } Warning: property_exists() expects exactly 2 parameters, 1 given in /in/cpUct on line 6 NULL
Output for 5.5.37, 5.6.7
Notice: Undefined property: DateTime::$date in /in/cpUct on line 4 Warning: property_exists() expects exactly 2 parameters, 1 given in /in/cpUct on line 4 NULL object(DateTime)#1 (3) { ["date"]=> string(26) "2014-07-09 12:23:42.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } Warning: property_exists() expects exactly 2 parameters, 1 given in /in/cpUct on line 6 NULL
Output for 5.3.0 - 5.4.17, 5.4.19 - 5.4.29, 5.5.0 - 5.5.13
Notice: Undefined property: DateTime::$date in /in/cpUct on line 4 Warning: property_exists() expects exactly 2 parameters, 1 given in /in/cpUct on line 4 NULL object(DateTime)#1 (3) { ["date"]=> string(19) "2014-07-09 12:23:41" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } Warning: property_exists() expects exactly 2 parameters, 1 given in /in/cpUct on line 6 NULL
Output for 5.4.18
Notice: Undefined property: DateTime::$date in /in/cpUct on line 4 Warning: property_exists() expects exactly 2 parameters, 1 given in /in/cpUct on line 4 NULL object(DateTime)#1 (3) { ["date"]=> string(19) "2014-07-09 12:23:42" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } Warning: property_exists() expects exactly 2 parameters, 1 given in /in/cpUct on line 6 NULL
Output for 5.2.6 - 5.2.17
Notice: Undefined property: DateTime::$date in /in/cpUct on line 4 Warning: Wrong parameter count for property_exists() in /in/cpUct on line 4 NULL object(DateTime)#1 (0) { } Notice: Undefined property: DateTime::$date in /in/cpUct on line 6 Warning: Wrong parameter count for property_exists() in /in/cpUct on line 6 NULL
Output for 5.2.0 - 5.2.5
Notice: Undefined property: DateTime::$date in /in/cpUct on line 4 Warning: Wrong parameter count for property_exists() in /in/cpUct on line 4 NULL object(DateTime)#1 (0) { } Notice: Undefined property: DateTime::$date in /in/cpUct on line 6 Warning: Wrong parameter count for property_exists() in /in/cpUct on line 6 NULL
Output for 5.0.0 - 5.1.6
Fatal error: Class 'DateTime' not found in /in/cpUct 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/cpUct 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/cpUct on line 3