3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $d = new DateTimeImmutable(); $e = $d->modify("+1 day"); var_export($d); var_export($e);
Output for 7.1.0
DateTimeImmutable::__set_state(array( 'date' => '2014-07-04 22:39:42.004092', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))DateTimeImmutable::__set_state(array( 'date' => '2014-07-05 22:39:42.004092', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 5.6.28, 7.0.14
DateTimeImmutable::__set_state(array( 'date' => '2014-07-04 22:39:42.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))DateTimeImmutable::__set_state(array( 'date' => '2014-07-05 22:39:42.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 7.0.6
DateTimeImmutable::__set_state(array( 'date' => '2016-05-03 03:00:57.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))DateTimeImmutable::__set_state(array( 'date' => '2016-05-04 03:00:57.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 7.0.5
DateTimeImmutable::__set_state(array( 'date' => '2016-04-02 16:15:39.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))DateTimeImmutable::__set_state(array( 'date' => '2016-04-03 16:15:39.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 7.0.4
DateTimeImmutable::__set_state(array( 'date' => '2016-03-10 01:51:53.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))DateTimeImmutable::__set_state(array( 'date' => '2016-03-11 01:51:53.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 7.0.3
DateTimeImmutable::__set_state(array( 'date' => '2016-03-18 02:03:37.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))DateTimeImmutable::__set_state(array( 'date' => '2016-03-19 02:03:37.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 7.0.2
DateTimeImmutable::__set_state(array( 'date' => '2016-03-21 12:37:07.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))DateTimeImmutable::__set_state(array( 'date' => '2016-03-22 12:37:07.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 7.0.1
DateTimeImmutable::__set_state(array( 'date' => '2016-03-23 12:50:19.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))DateTimeImmutable::__set_state(array( 'date' => '2016-03-24 12:50:19.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 7.0.0
DateTimeImmutable::__set_state(array( 'date' => '2016-03-26 15:15:33.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))DateTimeImmutable::__set_state(array( 'date' => '2016-03-27 15:15:33.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for hhvm-3.12.0
DateTimeImmutable::__set_state(array( 'data' => DateTime::__set_state(array( 'date' => '2016-03-26 17:01:31.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', )), ))DateTimeImmutable::__set_state(array( 'data' => DateTime::__set_state(array( 'date' => '2016-03-27 17:01:31.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', )), ))
Output for hhvm-3.10.0
DateTimeImmutable::__set_state(array( 'data' => DateTime::__set_state(array( 'date' => '2016-03-29 21:08:13.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', )), ))DateTimeImmutable::__set_state(array( 'data' => DateTime::__set_state(array( 'date' => '2016-03-30 21:08:13.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', )), ))
Output for 5.6.21
DateTimeImmutable::__set_state(array( 'date' => '2016-05-01 22:02:36.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))DateTimeImmutable::__set_state(array( 'date' => '2016-05-02 22:02:36.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 5.6.20
DateTimeImmutable::__set_state(array( 'date' => '2016-04-09 11:27:33.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))DateTimeImmutable::__set_state(array( 'date' => '2016-04-10 11:27:33.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 5.6.19
DateTimeImmutable::__set_state(array( 'date' => '2016-03-07 00:23:17.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))DateTimeImmutable::__set_state(array( 'date' => '2016-03-08 00:23:17.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 5.6.18
DateTimeImmutable::__set_state(array( 'date' => '2016-03-14 12:28:46.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))DateTimeImmutable::__set_state(array( 'date' => '2016-03-15 12:28:46.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 5.6.17
DateTimeImmutable::__set_state(array( 'date' => '2016-03-19 06:31:16.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))DateTimeImmutable::__set_state(array( 'date' => '2016-03-20 06:31:16.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 5.6.16
DateTimeImmutable::__set_state(array( 'date' => '2016-03-27 16:59:31.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))DateTimeImmutable::__set_state(array( 'date' => '2016-03-28 16:59:31.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 5.6.15
DateTimeImmutable::__set_state(array( 'date' => '2016-03-28 17:52:49.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))DateTimeImmutable::__set_state(array( 'date' => '2016-03-29 17:52:49.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 5.6.14
DateTimeImmutable::__set_state(array( 'date' => '2016-04-01 20:29:16.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))DateTimeImmutable::__set_state(array( 'date' => '2016-04-02 20:29:16.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 5.6.13
DateTimeImmutable::__set_state(array( 'date' => '2016-04-15 00:19:15.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))DateTimeImmutable::__set_state(array( 'date' => '2016-04-16 00:19:15.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 5.6.12
DateTimeImmutable::__set_state(array( 'date' => '2016-04-19 13:29:36.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))DateTimeImmutable::__set_state(array( 'date' => '2016-04-20 13:29:36.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 5.6.11
DateTimeImmutable::__set_state(array( 'date' => '2016-04-22 20:46:09.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))DateTimeImmutable::__set_state(array( 'date' => '2016-04-23 20:46:09.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 5.6.10
DateTimeImmutable::__set_state(array( 'date' => '2016-04-24 22:25:17.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))DateTimeImmutable::__set_state(array( 'date' => '2016-04-25 22:25:17.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 5.6.9
DateTimeImmutable::__set_state(array( 'date' => '2016-04-27 03:36:24.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))DateTimeImmutable::__set_state(array( 'date' => '2016-04-28 03:36:24.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 5.6.8
DateTimeImmutable::__set_state(array( 'date' => '2016-04-29 11:13:18.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))DateTimeImmutable::__set_state(array( 'date' => '2016-04-30 11:13:18.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 5.6.7
DateTimeImmutable::__set_state(array( 'date' => '2016-05-24 22:27:52.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))DateTimeImmutable::__set_state(array( 'date' => '2016-05-25 22:27:52.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 5.5.35
DateTimeImmutable::__set_state(array( 'date' => '2016-05-22 01:26:57.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))DateTimeImmutable::__set_state(array( 'date' => '2016-05-23 01:26:57.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 5.5.34
DateTimeImmutable::__set_state(array( 'date' => '2016-04-10 17:24:30.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))DateTimeImmutable::__set_state(array( 'date' => '2016-04-11 17:24:30.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 5.5.33
DateTimeImmutable::__set_state(array( 'date' => '2016-03-08 12:42:20.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))DateTimeImmutable::__set_state(array( 'date' => '2016-03-09 12:42:20.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 5.5.32
DateTimeImmutable::__set_state(array( 'date' => '2016-03-16 18:24:50.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))DateTimeImmutable::__set_state(array( 'date' => '2016-03-17 18:24:50.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 5.5.31
DateTimeImmutable::__set_state(array( 'date' => '2016-03-20 09:23:34.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))DateTimeImmutable::__set_state(array( 'date' => '2016-03-21 09:23:34.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 5.5.30
DateTimeImmutable::__set_state(array( 'date' => '2016-03-31 19:53:45.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))DateTimeImmutable::__set_state(array( 'date' => '2016-04-01 19:53:45.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 5.5.29
DateTimeImmutable::__set_state(array( 'date' => '2016-04-16 14:26:20.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))DateTimeImmutable::__set_state(array( 'date' => '2016-04-17 14:26:20.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 5.5.28
DateTimeImmutable::__set_state(array( 'date' => '2016-04-20 16:47:02.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))DateTimeImmutable::__set_state(array( 'date' => '2016-04-21 16:47:02.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 5.5.27
DateTimeImmutable::__set_state(array( 'date' => '2016-04-21 19:15:59.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))DateTimeImmutable::__set_state(array( 'date' => '2016-04-22 19:15:59.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 5.5.26
DateTimeImmutable::__set_state(array( 'date' => '2016-04-26 00:53:08.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))DateTimeImmutable::__set_state(array( 'date' => '2016-04-27 00:53:08.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 5.5.25
DateTimeImmutable::__set_state(array( 'date' => '2016-04-28 06:53:28.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))DateTimeImmutable::__set_state(array( 'date' => '2016-04-29 06:53:28.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 5.5.24
DateTimeImmutable::__set_state(array( 'date' => '2016-04-30 14:20:28.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))DateTimeImmutable::__set_state(array( 'date' => '2016-05-01 14:20:28.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Amsterdam', ))
Output for 5.0.0 - 5.4.45
Fatal error: Class 'DateTimeImmutable' not found in /in/5jBQ5 on line 2
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Fatal error: Cannot instantiate non-existent class: datetimeimmutable in /in/5jBQ5 on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot instantiate non-existent class: datetimeimmutable in /in/5jBQ5 on line 2