3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $d = new DateTime('NOW'); echo $d->format('c');
Output for 5.6.28, 7.0.14 - 7.1.0
2014-05-07T16:03:20+02:00
Output for 7.0.6
2016-05-03T16:29:20+02:00
Output for 7.0.5
2016-04-03T05:00:29+02:00
Output for 7.0.4
2016-03-10T16:35:58+01:00
Output for 7.0.3
2016-03-18T17:18:53+01:00
Output for 7.0.2
2016-03-22T23:25:46+01:00
Output for 7.0.1
2016-03-24T03:38:18+01:00
Output for 7.0.0
2016-03-27T05:35:16+02:00
Output for 5.6.21
2016-05-02T11:39:47+02:00
Output for 5.6.20
2016-04-10T03:58:17+02:00
Output for 5.6.19
2016-03-08T00:23:00+01:00
Output for 5.6.18
2016-03-15T09:15:26+01:00
Output for 5.6.17
2016-03-19T21:08:06+01:00
Output for 5.6.16
2016-03-28T06:23:22+02:00
Output for 5.6.15
2016-03-29T07:14:40+02:00
Output for 5.6.14
2016-04-02T09:12:01+02:00
Output for 5.6.13
2016-04-15T13:28:11+02:00
Output for 5.6.12
2016-04-20T03:53:05+02:00
Output for 5.6.11
2016-04-23T10:24:43+02:00
Output for 5.6.10
2016-04-25T12:19:23+02:00
Output for 5.6.9
2016-04-27T17:27:02+02:00
Output for 5.6.8
2016-04-30T02:11:08+02:00
Output for 5.5.35
2016-05-22T16:59:03+02:00
Output for 5.5.34
2016-04-11T06:12:37+02:00
Output for 5.5.33
2016-03-09T03:23:40+01:00
Output for 5.5.32
2016-03-17T12:57:11+01:00
Output for 5.5.31
2016-03-20T23:56:07+01:00
Output for 5.5.30
2016-04-01T09:08:17+02:00
Output for 5.5.29
2016-04-17T03:51:06+02:00
Output for 5.5.28
2016-04-21T07:04:23+02:00
Output for 5.5.27
2016-04-22T09:00:16+02:00
Output for 5.5.26
2016-04-26T14:59:57+02:00
Output for 5.5.25
2016-04-28T21:48:24+02:00
Output for 5.5.24
2016-05-24T16:09:47+02:00
Output for 5.4.45
2015-09-21T11:32:12+02:00
Output for 5.4.44
2015-09-21T11:32:08+02:00
Output for 5.4.43
2015-09-21T11:32:03+02:00
Output for 5.4.42
2015-09-21T11:32:01+02:00
Output for 5.4.41
2015-05-15T16:21:22+02:00
Output for 5.4.40
2015-05-15T16:21:17+02:00
Output for 5.4.39
2015-05-15T16:21:16+02:00
Output for 5.4.38
2015-03-03T00:55:51+01:00
Output for 5.4.36 - 5.4.37
2015-02-09T09:26:47+01:00
Output for 5.4.34 - 5.4.35
2015-02-09T09:26:46+01:00
Output for 5.4.32
2014-09-09T20:10:33+02:00
Output for 5.4.31
2014-09-09T20:10:31+02:00
Output for 5.4.29 - 5.4.30
2014-09-09T20:10:26+02:00
Output for 5.4.26 - 5.4.28
2014-05-07T16:03:21+02:00
Output for 5.4.6 - 5.4.25
2014-05-07T16:03:22+02:00
Output for 5.3.17 - 5.3.28, 5.4.0 - 5.4.5
2014-05-07T16:03:23+02:00
Output for 5.3.29
2014-09-09T20:10:27+02:00
Output for 5.2.17 - 5.3.16
2014-05-07T16:03:24+02:00
Output for 5.2.0 - 5.2.16
2014-05-07T16:03:25+02:00
Output for 5.0.0 - 5.1.6
Fatal error: Class 'DateTime' not found in /in/cSmfp on line 2
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Fatal error: Cannot instantiate non-existent class: datetime in /in/cSmfp on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot instantiate non-existent class: datetime in /in/cSmfp on line 2