3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $m_oDate = new DateTime('NOW'); print_r($m_oDate); echo $m_oDate->date; $m_oDate = new DateTime('NOW'); echo $m_oDate->date;
Output for 7.1.0
DateTime Object ( [date] => 2013-06-12 13:03:38.004402 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2013-06-12 13:03:38.004402 Notice: Undefined property: DateTime::$date in /in/ADMV2 on line 8
Output for 5.6.28, 7.0.14
DateTime Object ( [date] => 2013-06-12 13:03:38.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2013-06-12 13:03:38.000000 Notice: Undefined property: DateTime::$date in /in/ADMV2 on line 8
Output for 7.0.7
DateTime Object ( [date] => 2013-06-12 15:00:51.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2013-06-12 15:00:51.000000 Notice: Undefined property: DateTime::$date in /in/ADMV2 on line 8
Output for 5.5.35, 5.6.21, 7.0.6
DateTime Object ( [date] => 2016-05-21 01:29:44.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2016-05-21 01:29:44.000000 Notice: Undefined property: DateTime::$date in /in/ADMV2 on line 8
Output for 5.5.34, 5.6.20, 7.0.5
DateTime Object ( [date] => 2016-05-21 01:29:45.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2016-05-21 01:29:45.000000 Notice: Undefined property: DateTime::$date in /in/ADMV2 on line 8
Output for 5.5.32 - 5.5.33, 5.6.18 - 5.6.19, 7.0.4
DateTime Object ( [date] => 2016-05-21 01:29:46.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2016-05-21 01:29:46.000000 Notice: Undefined property: DateTime::$date in /in/ADMV2 on line 8
Output for 5.5.31, 5.6.17, 7.0.1 - 7.0.3
DateTime Object ( [date] => 2016-05-21 01:29:47.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2016-05-21 01:29:47.000000 Notice: Undefined property: DateTime::$date in /in/ADMV2 on line 8
Output for 5.6.14 - 5.6.16, 7.0.0
DateTime Object ( [date] => 2016-05-21 01:29:48.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2016-05-21 01:29:48.000000 Notice: Undefined property: DateTime::$date in /in/ADMV2 on line 8
Output for hhvm-3.12.0
DateTime Object ( [date] => 2016-05-21 01:29:46.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) Notice: Undefined property: DateTime::$date in /in/ADMV2 on line 5 Notice: Undefined property: DateTime::$date in /in/ADMV2 on line 8
Output for hhvm-3.10.0
DateTime Object ( [date] => 2016-05-21 01:29:48.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) Notice: Undefined property: DateTime::$date in /in/ADMV2 on line 5 Notice: Undefined property: DateTime::$date in /in/ADMV2 on line 8
Output for 5.4.45, 5.5.29 - 5.5.30, 5.6.13
DateTime Object ( [date] => 2016-05-21 01:29:49.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2016-05-21 01:29:49.000000 Notice: Undefined property: DateTime::$date in /in/ADMV2 on line 8
Output for 5.4.43 - 5.4.44, 5.5.27 - 5.5.28, 5.6.10 - 5.6.12
DateTime Object ( [date] => 2016-05-21 01:29:50.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2016-05-21 01:29:50.000000 Notice: Undefined property: DateTime::$date in /in/ADMV2 on line 8
Output for 5.4.41 - 5.4.42, 5.5.25 - 5.5.26, 5.6.9
DateTime Object ( [date] => 2016-05-21 01:29:51.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2016-05-21 01:29:51.000000 Notice: Undefined property: DateTime::$date in /in/ADMV2 on line 8
Output for 5.4.38 - 5.4.40, 5.5.23 - 5.5.24, 5.6.7 - 5.6.8
DateTime Object ( [date] => 2016-05-21 01:29:52.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2016-05-21 01:29:52.000000 Notice: Undefined property: DateTime::$date in /in/ADMV2 on line 8
Output for 5.4.36 - 5.4.37, 5.5.21 - 5.5.22, 5.6.5 - 5.6.6
DateTime Object ( [date] => 2016-05-21 01:29:53.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2016-05-21 01:29:53.000000 Notice: Undefined property: DateTime::$date in /in/ADMV2 on line 8
Output for 5.4.34 - 5.4.35, 5.5.18 - 5.5.20, 5.6.3 - 5.6.4
DateTime Object ( [date] => 2016-05-21 01:29:54.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2016-05-21 01:29:54.000000 Notice: Undefined property: DateTime::$date in /in/ADMV2 on line 8
Output for 5.4.32, 5.5.16, 5.6.0 - 5.6.2
DateTime Object ( [date] => 2016-05-21 01:29:55.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2016-05-21 01:29:55.000000 Notice: Undefined property: DateTime::$date in /in/ADMV2 on line 8
Output for 5.4.30 - 5.4.31, 5.5.14 - 5.5.15
DateTime Object ( [date] => 2016-05-21 01:29:56.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2016-05-21 01:29:56.000000 Notice: Undefined property: DateTime::$date in /in/ADMV2 on line 8
Output for 5.4.28 - 5.4.29, 5.5.13
DateTime Object ( [date] => 2016-05-21 01:29:56 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2016-05-21 01:29:56 Notice: Undefined property: DateTime::$date in /in/ADMV2 on line 8
Output for 5.4.25 - 5.4.27, 5.5.9 - 5.5.12
DateTime Object ( [date] => 2016-05-21 01:29:57 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2016-05-21 01:29:57 Notice: Undefined property: DateTime::$date in /in/ADMV2 on line 8
Output for 5.3.28, 5.4.22 - 5.4.24, 5.5.6 - 5.5.8
DateTime Object ( [date] => 2016-05-21 01:29:58 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2016-05-21 01:29:58 Notice: Undefined property: DateTime::$date in /in/ADMV2 on line 8
Output for 5.4.19 - 5.4.21, 5.5.2 - 5.5.5
DateTime Object ( [date] => 2016-05-21 01:29:59 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2016-05-21 01:29:59 Notice: Undefined property: DateTime::$date in /in/ADMV2 on line 8
Output for 5.3.26 - 5.3.27, 5.4.16 - 5.4.18, 5.5.0 - 5.5.1
DateTime Object ( [date] => 2016-05-21 01:30:00 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2016-05-21 01:30:00 Notice: Undefined property: DateTime::$date in /in/ADMV2 on line 8
Output for 5.3.23 - 5.3.25, 5.4.12 - 5.4.15
DateTime Object ( [date] => 2016-05-21 01:30:01 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2016-05-21 01:30:01 Notice: Undefined property: DateTime::$date in /in/ADMV2 on line 8
Output for 5.3.18 - 5.3.22, 5.4.8 - 5.4.11
DateTime Object ( [date] => 2016-05-21 01:30:02 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2016-05-21 01:30:02 Notice: Undefined property: DateTime::$date in /in/ADMV2 on line 8
Output for 5.3.14 - 5.3.17, 5.4.3 - 5.4.7
DateTime Object ( [date] => 2016-05-21 01:30:03 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2016-05-21 01:30:03 Notice: Undefined property: DateTime::$date in /in/ADMV2 on line 8
Output for 5.3.6 - 5.3.13, 5.4.0 - 5.4.2
DateTime Object ( [date] => 2016-05-21 01:30:04 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2016-05-21 01:30:04 Notice: Undefined property: DateTime::$date in /in/ADMV2 on line 8
Output for 5.3.29
DateTime Object ( [date] => 2016-05-21 01:29:55 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2016-05-21 01:29:55 Notice: Undefined property: DateTime::$date in /in/ADMV2 on line 8
Output for 5.3.2 - 5.3.5
DateTime Object ( [date] => 2016-05-21 01:30:05 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2016-05-21 01:30:05 Notice: Undefined property: DateTime::$date in /in/ADMV2 on line 8
Output for 5.3.0 - 5.3.1
DateTime Object ( [date] => 2016-05-21 01:30:06 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2016-05-21 01:30:06 Notice: Undefined property: DateTime::$date in /in/ADMV2 on line 8
Output for 5.2.6 - 5.2.17
DateTime Object ( ) Notice: Undefined property: DateTime::$date in /in/ADMV2 on line 5 Notice: Undefined property: DateTime::$date in /in/ADMV2 on line 8
Output for 5.2.0 - 5.2.5
DateTime Object ( ) Notice: Undefined property: DateTime::$date in /in/ADMV2 on line 5 Notice: Undefined property: DateTime::$date in /in/ADMV2 on line 8
Output for 5.0.0 - 5.1.6
Fatal error: Class 'DateTime' not found in /in/ADMV2 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/ADMV2 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/ADMV2 on line 3