3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $now = new DateTimeImmutable(); echo $now->date; print_r($now); echo $now->date;
based on sFKEc
Output for 7.2.0
Notice: Undefined property: DateTimeImmutable::$date in /in/lKNZ4 on line 4 DateTimeImmutable Object ( [date] => 2015-10-11 10:25:18.003882 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2015-10-11 10:25:18.003882
Output for 7.1.10
Notice: Undefined property: DateTimeImmutable::$date in /in/lKNZ4 on line 4 DateTimeImmutable Object ( [date] => 2015-10-11 10:25:18.003809 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2015-10-11 10:25:18.003809
Output for 7.1.7
Notice: Undefined property: DateTimeImmutable::$date in /in/lKNZ4 on line 4 DateTimeImmutable Object ( [date] => 2015-10-11 10:25:18.003380 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2015-10-11 10:25:18.003380
Output for 7.1.6
Notice: Undefined property: DateTimeImmutable::$date in /in/lKNZ4 on line 4 DateTimeImmutable Object ( [date] => 2015-10-11 10:25:18.013789 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2015-10-11 10:25:18.013789
Output for 7.1.5
Notice: Undefined property: DateTimeImmutable::$date in /in/lKNZ4 on line 4 DateTimeImmutable Object ( [date] => 2015-10-11 10:25:18.011090 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2015-10-11 10:25:18.011090
Output for 7.1.0
Notice: Undefined property: DateTimeImmutable::$date in /in/lKNZ4 on line 4 DateTimeImmutable Object ( [date] => 2015-10-11 10:25:18.004064 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2015-10-11 10:25:18.004064
Output for 5.6.28, 7.0.20
Notice: Undefined property: DateTimeImmutable::$date in /in/lKNZ4 on line 4 DateTimeImmutable Object ( [date] => 2015-10-11 10:25:18.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2015-10-11 10:25:18.000000
Output for 7.0.6
Notice: Undefined property: DateTimeImmutable::$date in /in/lKNZ4 on line 4 DateTimeImmutable Object ( [date] => 2016-05-03 17:09:27.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2016-05-03 17:09:27.000000
Output for 7.0.5
Notice: Undefined property: DateTimeImmutable::$date in /in/lKNZ4 on line 4 DateTimeImmutable Object ( [date] => 2016-04-03 05:38:26.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2016-04-03 05:38:26.000000
Output for 7.0.4
Notice: Undefined property: DateTimeImmutable::$date in /in/lKNZ4 on line 4 DateTimeImmutable Object ( [date] => 2016-03-10 17:19:09.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2016-03-10 17:19:09.000000
Output for 7.0.3
Notice: Undefined property: DateTimeImmutable::$date in /in/lKNZ4 on line 4 DateTimeImmutable Object ( [date] => 2016-03-18 18:04:35.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2016-03-18 18:04:35.000000
Output for 7.0.2
Notice: Undefined property: DateTimeImmutable::$date in /in/lKNZ4 on line 4 DateTimeImmutable Object ( [date] => 2016-03-23 00:17:56.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2016-03-23 00:17:56.000000
Output for 7.0.1
Notice: Undefined property: DateTimeImmutable::$date in /in/lKNZ4 on line 4 DateTimeImmutable Object ( [date] => 2016-03-24 04:18:25.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2016-03-24 04:18:25.000000
Output for 7.0.0
Notice: Undefined property: DateTimeImmutable::$date in /in/lKNZ4 on line 4 DateTimeImmutable Object ( [date] => 2016-03-27 06:15:08.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2016-03-27 06:15:08.000000
Output for 5.6.21
Notice: Undefined property: DateTimeImmutable::$date in /in/lKNZ4 on line 4 DateTimeImmutable Object ( [date] => 2016-05-02 12:19:38.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2016-05-02 12:19:38.000000
Output for 5.6.20
Notice: Undefined property: DateTimeImmutable::$date in /in/lKNZ4 on line 4 DateTimeImmutable Object ( [date] => 2016-04-10 04:36:52.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2016-04-10 04:36:52.000000
Output for 5.6.19
Notice: Undefined property: DateTimeImmutable::$date in /in/lKNZ4 on line 4 DateTimeImmutable Object ( [date] => 2016-03-08 01:26:35.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2016-03-08 01:26:35.000000
Output for 5.6.18
Notice: Undefined property: DateTimeImmutable::$date in /in/lKNZ4 on line 4 DateTimeImmutable Object ( [date] => 2016-03-15 09:58:10.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2016-03-15 09:58:10.000000
Output for 5.6.17
Notice: Undefined property: DateTimeImmutable::$date in /in/lKNZ4 on line 4 DateTimeImmutable Object ( [date] => 2016-03-19 21:51:18.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2016-03-19 21:51:18.000000
Output for 5.6.16
Notice: Undefined property: DateTimeImmutable::$date in /in/lKNZ4 on line 4 DateTimeImmutable Object ( [date] => 2016-03-28 07:02:44.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2016-03-28 07:02:44.000000
Output for 5.6.15
Notice: Undefined property: DateTimeImmutable::$date in /in/lKNZ4 on line 4 DateTimeImmutable Object ( [date] => 2016-03-29 07:53:40.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2016-03-29 07:53:40.000000
Output for 5.6.14
Notice: Undefined property: DateTimeImmutable::$date in /in/lKNZ4 on line 4 DateTimeImmutable Object ( [date] => 2016-04-02 09:48:57.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2016-04-02 09:48:57.000000
Output for 5.6.13
Notice: Undefined property: DateTimeImmutable::$date in /in/lKNZ4 on line 4 DateTimeImmutable Object ( [date] => 2016-04-15 14:08:03.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2016-04-15 14:08:03.000000
Output for 5.6.12
Notice: Undefined property: DateTimeImmutable::$date in /in/lKNZ4 on line 4 DateTimeImmutable Object ( [date] => 2016-04-20 04:35:01.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2016-04-20 04:35:01.000000
Output for 5.6.11
Notice: Undefined property: DateTimeImmutable::$date in /in/lKNZ4 on line 4 DateTimeImmutable Object ( [date] => 2016-04-24 10:45:54.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2016-04-24 10:45:54.000000
Output for 5.6.10
Notice: Undefined property: DateTimeImmutable::$date in /in/lKNZ4 on line 4 DateTimeImmutable Object ( [date] => 2016-04-25 13:00:45.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2016-04-25 13:00:45.000000
Output for 5.6.9
Notice: Undefined property: DateTimeImmutable::$date in /in/lKNZ4 on line 4 DateTimeImmutable Object ( [date] => 2016-04-27 18:10:04.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2016-04-27 18:10:04.000000
Output for 5.6.8
Notice: Undefined property: DateTimeImmutable::$date in /in/lKNZ4 on line 4 DateTimeImmutable Object ( [date] => 2016-04-30 03:02:33.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2016-04-30 03:02:33.000000
Output for 5.5.35
Notice: Undefined property: DateTimeImmutable::$date in /in/lKNZ4 on line 4 DateTimeImmutable Object ( [date] => 2016-05-22 18:06:09.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2016-05-22 18:06:09.000000
Output for 5.5.34
Notice: Undefined property: DateTimeImmutable::$date in /in/lKNZ4 on line 4 DateTimeImmutable Object ( [date] => 2016-04-11 06:50:31.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2016-04-11 06:50:31.000000
Output for 5.5.33
Notice: Undefined property: DateTimeImmutable::$date in /in/lKNZ4 on line 4 DateTimeImmutable Object ( [date] => 2016-03-09 04:06:00.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2016-03-09 04:06:00.000000
Output for 5.5.32
Notice: Undefined property: DateTimeImmutable::$date in /in/lKNZ4 on line 4 DateTimeImmutable Object ( [date] => 2016-03-17 13:41:07.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2016-03-17 13:41:07.000000
Output for 5.5.31
Notice: Undefined property: DateTimeImmutable::$date in /in/lKNZ4 on line 4 DateTimeImmutable Object ( [date] => 2016-03-21 00:44:46.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2016-03-21 00:44:46.000000
Output for 5.5.30
Notice: Undefined property: DateTimeImmutable::$date in /in/lKNZ4 on line 4 DateTimeImmutable Object ( [date] => 2016-04-01 09:46:49.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2016-04-01 09:46:49.000000
Output for 5.5.29
Notice: Undefined property: DateTimeImmutable::$date in /in/lKNZ4 on line 4 DateTimeImmutable Object ( [date] => 2016-04-17 04:32:50.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2016-04-17 04:32:50.000000
Output for 5.5.28
Notice: Undefined property: DateTimeImmutable::$date in /in/lKNZ4 on line 4 DateTimeImmutable Object ( [date] => 2016-04-21 07:46:21.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2016-04-21 07:46:21.000000
Output for 5.5.27
Notice: Undefined property: DateTimeImmutable::$date in /in/lKNZ4 on line 4 DateTimeImmutable Object ( [date] => 2016-04-22 09:39:26.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2016-04-22 09:39:26.000000
Output for 5.5.26
Notice: Undefined property: DateTimeImmutable::$date in /in/lKNZ4 on line 4 DateTimeImmutable Object ( [date] => 2016-04-26 15:42:28.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2016-04-26 15:42:28.000000
Output for 5.5.25
Notice: Undefined property: DateTimeImmutable::$date in /in/lKNZ4 on line 4 DateTimeImmutable Object ( [date] => 2016-04-28 22:33:31.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2016-04-28 22:33:31.000000
Output for 5.5.24
Notice: Undefined property: DateTimeImmutable::$date in /in/lKNZ4 on line 4 DateTimeImmutable Object ( [date] => 2016-05-24 05:14:03.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2016-05-24 05:14:03.000000
Output for 5.0.0 - 5.4.45
Fatal error: Class 'DateTimeImmutable' not found in /in/lKNZ4 on line 3
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Fatal error: Cannot instantiate non-existent class: datetimeimmutable in /in/lKNZ4 on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot instantiate non-existent class: datetimeimmutable in /in/lKNZ4 on line 3