3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $d = new \DateTime(); $c = clone $d; echo $d->format('c'); echo "\n"; echo $c->modify('+1 day')->format('c');
based on 52q3C
Output for 5.6.28, 7.0.20 - 7.2.0
2016-01-11T13:37:20+01:00 2016-01-12T13:37:20+01:00
Output for 7.0.6
2016-05-21T13:37:15+02:00 2016-05-22T13:37:15+02:00
Output for 7.0.5
2016-04-03T09:36:50+02:00 2016-04-04T09:36:50+02:00
Output for 7.0.4
2016-03-10T21:43:27+01:00 2016-03-11T21:43:27+01:00
Output for 7.0.3
2016-03-18T23:09:40+01:00 2016-03-19T23:09:40+01:00
Output for 7.0.2
2016-03-23T05:22:56+01:00 2016-03-24T05:22:56+01:00
Output for 7.0.1
2016-03-24T08:28:16+01:00 2016-03-25T08:28:16+01:00
Output for 7.0.0
2016-03-27T10:21:32+02:00 2016-03-28T10:21:32+02:00
Output for 5.6.21
2016-05-02T16:30:27+02:00 2016-05-03T16:30:27+02:00
Output for 5.6.20
2016-04-10T08:38:54+02:00 2016-04-11T08:38:54+02:00
Output for 5.6.19
2016-03-08T05:52:29+01:00 2016-03-09T05:52:29+01:00
Output for 5.6.18
2016-03-15T14:50:16+01:00 2016-03-16T14:50:16+01:00
Output for 5.6.17
2016-03-20T02:22:54+01:00 2016-03-21T02:22:54+01:00
Output for 5.6.16
2016-03-28T11:11:06+02:00 2016-03-29T11:11:06+02:00
Output for 5.6.15
2016-03-29T12:00:01+02:00 2016-03-30T12:00:01+02:00
Output for 5.6.14
2016-04-14T17:43:08+02:00 2016-04-15T17:43:08+02:00
Output for 5.6.13
2016-04-15T18:22:09+02:00 2016-04-16T18:22:09+02:00
Output for 5.6.12
2016-04-20T08:51:17+02:00 2016-04-21T08:51:17+02:00
Output for 5.6.11
2016-04-24T15:17:32+02:00 2016-04-25T15:17:32+02:00
Output for 5.6.10
2016-04-25T17:23:18+02:00 2016-04-26T17:23:18+02:00
Output for 5.6.9
2016-04-27T22:49:30+02:00 2016-04-28T22:49:30+02:00
Output for 5.6.8
2016-04-30T07:18:52+02:00 2016-05-01T07:18:52+02:00
Output for 5.5.35
2016-05-23T02:32:19+02:00 2016-05-24T02:32:19+02:00
Output for 5.5.34
2016-04-11T10:52:48+02:00 2016-04-12T10:52:48+02:00
Output for 5.5.33
2016-03-09T08:51:32+01:00 2016-03-10T08:51:32+01:00
Output for 5.5.32
2016-03-17T18:47:33+01:00 2016-03-18T18:47:33+01:00
Output for 5.5.31
2016-03-21T05:33:13+01:00 2016-03-22T05:33:13+01:00
Output for 5.5.30
2016-04-01T13:52:11+02:00 2016-04-02T13:52:11+02:00
Output for 5.5.29
2016-04-17T08:39:44+02:00 2016-04-18T08:39:44+02:00
Output for 5.5.28
2016-04-21T12:10:43+02:00 2016-04-22T12:10:43+02:00
Output for 5.5.27
2016-04-22T13:48:03+02:00 2016-04-23T13:48:03+02:00
Output for 5.5.26
2016-04-26T20:04:47+02:00 2016-04-27T20:04:47+02:00
Output for 5.5.25
2016-04-29T03:30:21+02:00 2016-04-30T03:30:21+02:00
Output for 5.5.24
2016-05-24T09:53:15+02:00 2016-05-25T09:53:15+02:00
Output for 5.4.44 - 5.4.45
2016-01-11T13:37:24+01:00 2016-01-12T13:37:24+01:00
Output for 5.4.42 - 5.4.43
2016-01-11T13:37:25+01:00 2016-01-12T13:37:25+01:00
Output for 5.4.40 - 5.4.41
2016-01-11T13:37:26+01:00 2016-01-12T13:37:26+01:00
Output for 5.4.37 - 5.4.39
2016-01-11T13:37:27+01:00 2016-01-12T13:37:27+01:00
Output for 5.4.34 - 5.4.36
2016-01-11T13:37:28+01:00 2016-01-12T13:37:28+01:00
Output for 5.3.29, 5.4.28 - 5.4.32
2016-01-11T13:37:29+01:00 2016-01-12T13:37:29+01:00
Output for 5.4.24 - 5.4.27
2016-01-11T13:37:30+01:00 2016-01-12T13:37:30+01:00
Output for 5.3.28, 5.4.20 - 5.4.23
2016-01-11T13:37:31+01:00 2016-01-12T13:37:31+01:00
Output for 5.3.27, 5.4.18 - 5.4.19
2016-01-11T13:37:32+01:00 2016-01-12T13:37:32+01:00
Output for 5.3.24 - 5.3.26, 5.4.14 - 5.4.17
2016-01-11T13:37:33+01:00 2016-01-12T13:37:33+01:00
Output for 5.3.21 - 5.3.23, 5.4.11 - 5.4.13
2016-01-11T13:37:34+01:00 2016-01-12T13:37:34+01:00