3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $d = new DateTime(); var_dump($d->format('c'));
Output for 5.6.28, 7.0.20 - 7.2.0
string(25) "2015-10-30T14:53:57+01:00"
Output for 7.0.6
string(25) "2016-05-03T18:03:04+02:00"
Output for 7.0.5
string(25) "2016-04-03T06:29:50+02:00"
Output for 7.0.4
string(25) "2016-03-10T18:15:05+01:00"
Output for 7.0.3
string(25) "2016-03-18T19:18:16+01:00"
Output for 7.0.2
string(25) "2016-03-23T01:27:53+01:00"
Output for 7.0.1
string(25) "2016-03-24T05:11:04+01:00"
Output for 7.0.0
string(25) "2016-03-27T07:07:43+02:00"
Output for 5.6.21
string(25) "2016-05-02T13:13:04+02:00"
Output for 5.6.20
string(25) "2016-04-10T05:29:01+02:00"
Output for 5.6.19
string(25) "2016-03-08T02:25:29+01:00"
Output for 5.6.18
string(25) "2016-03-15T11:07:48+01:00"
Output for 5.6.17
string(25) "2016-03-19T22:48:07+01:00"
Output for 5.6.16
string(25) "2016-03-28T07:54:47+02:00"
Output for 5.6.15
string(25) "2016-03-29T08:45:35+02:00"
Output for 5.6.14
string(25) "2016-04-02T10:38:23+02:00"
Output for 5.6.13
string(25) "2016-04-15T14:59:33+02:00"
Output for 5.6.12
string(25) "2016-04-20T05:28:26+02:00"
Output for 5.6.11
string(25) "2016-04-24T11:44:27+02:00"
Output for 5.6.10
string(25) "2016-04-25T13:53:46+02:00"
Output for 5.6.9
string(25) "2016-04-27T19:03:35+02:00"
Output for 5.6.8
string(25) "2016-04-30T03:56:43+02:00"
Output for 5.5.35
string(25) "2016-05-22T19:39:06+02:00"
Output for 5.5.34
string(25) "2016-04-11T07:41:05+02:00"
Output for 5.5.33
string(25) "2016-03-09T05:03:44+01:00"
Output for 5.5.32
string(25) "2016-03-17T14:45:33+01:00"
Output for 5.5.31
string(25) "2016-03-21T01:47:21+01:00"
Output for 5.5.30
string(25) "2016-04-01T10:39:05+02:00"
Output for 5.5.29
string(25) "2016-04-17T05:23:46+02:00"
Output for 5.5.28
string(25) "2016-04-21T08:41:43+02:00"
Output for 5.5.27
string(25) "2016-04-22T10:30:11+02:00"
Output for 5.5.26
string(25) "2016-04-26T16:36:52+02:00"
Output for 5.5.25
string(25) "2016-04-28T23:27:54+02:00"
Output for 5.5.24
string(25) "2016-05-24T06:02:33+02:00"
Output for 5.4.42 - 5.4.45
string(25) "2015-10-30T14:54:08+01:00"
Output for 5.4.35 - 5.4.41
string(25) "2015-10-30T14:54:09+01:00"
Output for 5.4.26 - 5.4.34
string(25) "2015-10-30T14:54:10+01:00"
Output for 5.4.18 - 5.4.25
string(25) "2015-10-30T14:54:11+01:00"
Output for 5.4.11 - 5.4.17
string(25) "2015-10-30T14:54:12+01:00"
Output for 5.4.4 - 5.4.10
string(25) "2015-10-30T14:54:13+01:00"
Output for 5.3.27 - 5.4.3
string(25) "2015-10-30T14:54:14+01:00"
Output for 5.3.22 - 5.3.26
string(25) "2015-10-30T14:54:15+01:00"
Output for 5.3.19 - 5.3.21
string(25) "2015-10-30T14:54:16+01:00"