3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php print_r(new DateTimeImmutable('+1 day'));
based on mWkX3
Output for 7.2.0
DateTimeImmutable Object ( [date] => 2016-01-27 14:20:35.006049 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 7.1.10
DateTimeImmutable Object ( [date] => 2016-01-27 14:20:35.006838 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 7.1.7
DateTimeImmutable Object ( [date] => 2016-01-27 14:20:35.003777 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 7.1.6
DateTimeImmutable Object ( [date] => 2016-01-27 14:20:35.009763 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 7.1.5
DateTimeImmutable Object ( [date] => 2016-01-27 14:20:35.011162 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 7.1.0
DateTimeImmutable Object ( [date] => 2016-01-27 14:20:35.004092 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.6.28, 7.0.20
DateTimeImmutable Object ( [date] => 2016-01-27 14:20:35.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 7.0.6
DateTimeImmutable Object ( [date] => 2016-05-22 14:22:34.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 7.0.5
DateTimeImmutable Object ( [date] => 2016-04-04 10:14:41.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 7.0.4
DateTimeImmutable Object ( [date] => 2016-03-11 22:23:30.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 7.0.3
DateTimeImmutable Object ( [date] => 2016-03-19 23:59:28.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 7.0.2
DateTimeImmutable Object ( [date] => 2016-03-24 06:06:30.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 7.0.1
DateTimeImmutable Object ( [date] => 2016-03-25 09:08:22.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 7.0.0
DateTimeImmutable Object ( [date] => 2016-03-28 10:59:31.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.6.21
DateTimeImmutable Object ( [date] => 2016-05-03 17:09:51.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.6.20
DateTimeImmutable Object ( [date] => 2016-04-11 09:16:46.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.6.19
DateTimeImmutable Object ( [date] => 2016-03-09 06:32:54.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.6.18
DateTimeImmutable Object ( [date] => 2016-03-16 15:33:20.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.6.17
DateTimeImmutable Object ( [date] => 2016-03-21 03:11:28.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.6.16
DateTimeImmutable Object ( [date] => 2016-03-29 11:49:18.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.6.15
DateTimeImmutable Object ( [date] => 2016-03-30 12:39:06.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.6.14
DateTimeImmutable Object ( [date] => 2016-04-15 18:22:05.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.6.13
DateTimeImmutable Object ( [date] => 2016-04-16 19:01:18.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.6.12
DateTimeImmutable Object ( [date] => 2016-04-21 09:32:32.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.6.11
DateTimeImmutable Object ( [date] => 2016-04-25 15:58:16.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.6.10
DateTimeImmutable Object ( [date] => 2016-04-26 18:03:44.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.6.9
DateTimeImmutable Object ( [date] => 2016-04-28 23:32:35.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.6.8
DateTimeImmutable Object ( [date] => 2016-05-01 07:58:28.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.5.35
DateTimeImmutable Object ( [date] => 2016-05-24 03:25:08.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.5.34
DateTimeImmutable Object ( [date] => 2016-04-12 11:31:09.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.5.33
DateTimeImmutable Object ( [date] => 2016-03-10 09:38:16.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.5.32
DateTimeImmutable Object ( [date] => 2016-03-18 19:33:48.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.5.31
DateTimeImmutable Object ( [date] => 2016-03-22 06:21:25.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.5.30
DateTimeImmutable Object ( [date] => 2016-04-02 14:30:01.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.5.29
DateTimeImmutable Object ( [date] => 2016-04-18 09:18:26.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.5.28
DateTimeImmutable Object ( [date] => 2016-04-22 12:52:28.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.5.27
DateTimeImmutable Object ( [date] => 2016-04-23 14:28:30.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.5.26
DateTimeImmutable Object ( [date] => 2016-04-27 20:46:01.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.5.25
DateTimeImmutable Object ( [date] => 2016-04-30 04:13:51.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.5.24
DateTimeImmutable Object ( [date] => 2016-05-25 10:44:15.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.3.22 - 5.4.45
Fatal error: Class 'DateTimeImmutable' not found in /in/38rFk on line 3
Process exited with code 255.