3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $foo = new \DateTime('now +1 day'); print_r($foo);
based on KibIj
Output for 7.2.0
DateTime Object ( [date] => 2016-01-22 16:05:42.004886 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 7.1.10
DateTime Object ( [date] => 2016-01-22 16:05:42.003835 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 7.1.7
DateTime Object ( [date] => 2016-01-22 16:05:42.053942 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 7.1.6
DateTime Object ( [date] => 2016-01-22 16:05:42.008568 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 7.1.5
DateTime Object ( [date] => 2016-01-22 16:05:42.010171 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 7.1.0
DateTime Object ( [date] => 2016-01-22 16:05:42.003894 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.6.28, 7.0.20
DateTime Object ( [date] => 2016-01-22 16:05:42.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 7.0.6
DateTime Object ( [date] => 2016-05-22 14:09:29.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 7.0.5
DateTime Object ( [date] => 2016-04-04 10:03:54.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 7.0.4
DateTime Object ( [date] => 2016-03-11 22:11:15.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 7.0.3
DateTime Object ( [date] => 2016-03-19 23:46:43.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 7.0.2
DateTime Object ( [date] => 2016-03-24 05:54:03.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 7.0.1
DateTime Object ( [date] => 2016-03-25 08:55:46.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 7.0.0
DateTime Object ( [date] => 2016-03-28 10:48:33.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.6.21
DateTime Object ( [date] => 2016-05-03 16:58:03.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.6.20
DateTime Object ( [date] => 2016-04-11 09:05:42.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.6.19
DateTime Object ( [date] => 2016-03-09 06:21:11.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.6.18
DateTime Object ( [date] => 2016-03-16 15:20:50.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.6.17
DateTime Object ( [date] => 2016-03-21 02:53:01.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.6.16
DateTime Object ( [date] => 2016-03-29 11:38:19.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.6.15
DateTime Object ( [date] => 2016-03-30 12:28:09.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.6.14
DateTime Object ( [date] => 2016-04-15 18:10:45.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.6.13
DateTime Object ( [date] => 2016-04-16 18:50:00.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.6.12
DateTime Object ( [date] => 2016-04-21 09:20:38.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.6.11
DateTime Object ( [date] => 2016-04-25 15:46:25.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.6.10
DateTime Object ( [date] => 2016-04-26 17:51:57.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.6.9
DateTime Object ( [date] => 2016-04-28 23:20:31.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.6.8
DateTime Object ( [date] => 2016-05-01 07:47:15.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.5.35
DateTime Object ( [date] => 2016-05-24 03:10:29.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.5.34
DateTime Object ( [date] => 2016-04-12 11:20:18.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.5.33
DateTime Object ( [date] => 2016-03-10 09:26:30.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.5.32
DateTime Object ( [date] => 2016-03-18 19:20:20.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.5.31
DateTime Object ( [date] => 2016-03-22 06:07:32.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.5.30
DateTime Object ( [date] => 2016-04-02 14:19:13.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.5.29
DateTime Object ( [date] => 2016-04-18 09:07:20.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.5.28
DateTime Object ( [date] => 2016-04-22 12:40:03.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.5.27
DateTime Object ( [date] => 2016-04-23 14:17:13.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.5.26
DateTime Object ( [date] => 2016-04-27 20:33:42.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.5.25
DateTime Object ( [date] => 2016-04-30 04:00:42.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.5.24
DateTime Object ( [date] => 2016-05-25 10:32:40.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.4.44 - 5.4.45
DateTime Object ( [date] => 2016-01-22 16:05:45.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.4.42 - 5.4.43
DateTime Object ( [date] => 2016-01-22 16:05:46.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.4.40 - 5.4.41
DateTime Object ( [date] => 2016-01-22 16:05:47.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.4.39
DateTime Object ( [date] => 2016-01-22 16:05:48.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.4.36 - 5.4.38
DateTime Object ( [date] => 2016-01-22 16:05:49.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.4.34 - 5.4.35
DateTime Object ( [date] => 2016-01-22 16:05:50.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.4.31 - 5.4.32
DateTime Object ( [date] => 2016-01-22 16:05:51.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.4.30
DateTime Object ( [date] => 2016-01-22 16:05:52.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.4.27 - 5.4.29
DateTime Object ( [date] => 2016-01-22 16:05:52 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.4.24 - 5.4.26
DateTime Object ( [date] => 2016-01-22 16:05:53 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.3.28, 5.4.20 - 5.4.23
DateTime Object ( [date] => 2016-01-22 16:05:54 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.3.27, 5.4.18 - 5.4.19
DateTime Object ( [date] => 2016-01-22 16:05:55 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.3.24 - 5.3.26, 5.4.14 - 5.4.17
DateTime Object ( [date] => 2016-01-22 16:05:56 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.3.22 - 5.3.23, 5.4.12 - 5.4.13
DateTime Object ( [date] => 2016-01-22 16:05:57 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.3.29
DateTime Object ( [date] => 2016-01-22 16:05:51 [timezone_type] => 3 [timezone] => Europe/Amsterdam )