3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $date = new \DateTime('+4 hours'); echo $date->format('c');
based on vMQlC
Output for 5.6.28, 7.0.20 - 7.2.0
2015-11-04T23:57:56+01:00
Output for 7.0.6
2016-05-03T22:19:51+02:00
Output for 7.0.5
2016-04-03T10:45:33+02:00
Output for 7.0.4
2016-03-10T22:31:50+01:00
Output for 7.0.3
2016-03-18T23:39:16+01:00
Output for 7.0.2
2016-03-23T05:46:48+01:00
Output for 7.0.1
2016-03-24T09:27:24+01:00
Output for 7.0.0
2016-03-27T11:23:45+02:00
Output for 5.6.21
2016-05-02T17:29:16+02:00
Output for 5.6.20
2016-04-10T09:44:55+02:00
Output for 5.6.19
2016-03-08T06:42:49+01:00
Output for 5.6.18
2016-03-15T15:25:54+01:00
Output for 5.6.17
2016-03-20T03:05:34+01:00
Output for 5.6.16
2016-03-28T12:11:05+02:00
Output for 5.6.15
2016-03-29T13:01:40+02:00
Output for 5.6.14
2016-04-02T14:53:19+02:00
Output for 5.6.13
2016-04-15T19:16:37+02:00
Output for 5.6.12
2016-04-20T09:45:40+02:00
Output for 5.6.11
2016-04-24T16:07:30+02:00
Output for 5.6.10
2016-04-25T18:11:07+02:00
Output for 5.6.9
2016-04-27T23:21:06+02:00
Output for 5.6.8
2016-04-30T08:13:45+02:00
Output for 5.5.35
2016-05-23T00:19:19+02:00
Output for 5.5.34
2016-04-11T11:56:38+02:00
Output for 5.5.33
2016-03-09T09:24:27+01:00
Output for 5.5.32
2016-03-17T19:20:17+01:00
Output for 5.5.31
2016-03-21T06:06:42+01:00
Output for 5.5.30
2016-04-01T14:55:16+02:00
Output for 5.5.29
2016-04-17T09:40:24+02:00
Output for 5.5.28
2016-04-21T12:59:03+02:00
Output for 5.5.27
2016-04-22T14:46:24+02:00
Output for 5.5.26
2016-04-26T20:53:46+02:00
Output for 5.5.25
2016-04-29T03:46:04+02:00
Output for 5.5.24
2016-05-24T10:19:24+02:00
Output for 5.4.40 - 5.4.45
2015-11-04T23:58:04+01:00
Output for 5.4.30 - 5.4.39
2015-11-04T23:58:05+01:00
Output for 5.4.21 - 5.4.29
2015-11-04T23:58:06+01:00
Output for 5.4.12 - 5.4.20
2015-11-04T23:58:07+01:00
Output for 5.4.3 - 5.4.11
2015-11-04T23:58:08+01:00
Output for 5.3.24 - 5.4.2
2015-11-04T23:58:09+01:00
Output for 5.3.19 - 5.3.23
2015-11-04T23:58:10+01:00