3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $dt = new DateTime(); echo $dt->format("Y-m-d\TH:i:s.u") . "\n"; ?>
Output for 7.1.0
2014-07-27T16:54:46.004125
Output for 5.6.28, 7.0.14
2014-07-27T16:54:46.000000
Output for 7.0.6
2016-05-21T18:15:45.000000
Output for 7.0.5
2016-04-14T15:32:51.000000
Output for 7.0.4
2016-03-10T06:23:30.000000
Output for 7.0.3
2016-03-18T06:51:39.000000
Output for 7.0.2
2016-03-22T12:24:27.000000
Output for 7.0.1
2016-03-23T17:44:53.000000
Output for 7.0.0
2016-03-27T13:08:35.000000
Output for 5.6.21
2016-05-02T20:32:15.000000
Output for 5.6.20
2016-04-10T12:33:04.000000
Output for 5.6.19
2016-03-07T07:54:14.000000
Output for 5.6.18
2016-03-14T20:52:28.000000
Output for 5.6.17
2016-03-19T11:11:25.000000
Output for 5.6.16
2016-03-28T13:57:54.000000
Output for 5.6.15
2016-03-29T14:47:11.000000
Output for 5.6.14
2016-04-14T20:28:45.000000
Output for 5.6.13
2016-04-15T21:14:46.000000
Output for 5.6.12
2016-04-20T12:15:25.000000
Output for 5.6.11
2016-04-24T18:12:05.000000
Output for 5.6.10
2016-04-25T20:19:07.000000
Output for 5.6.9
2016-04-28T02:16:02.000000
Output for 5.6.8
2016-04-30T10:07:05.000000
Output for 5.5.35
2016-05-23T09:14:17.000000
Output for 5.5.34
2016-04-11T14:48:30.000000
Output for 5.5.33
2016-03-08T17:17:52.000000
Output for 5.5.32
2016-03-16T23:20:28.000000
Output for 5.5.31
2016-03-20T13:59:53.000000
Output for 5.5.30
2016-04-01T16:36:29.000000
Output for 5.5.29
2016-04-17T11:25:18.000000
Output for 5.5.28
2016-04-21T15:06:06.000000
Output for 5.5.27
2016-04-22T16:38:18.000000
Output for 5.5.26
2016-04-26T23:00:47.000000
Output for 5.5.25
2016-04-29T06:34:53.000000
Output for 5.5.24
2016-05-24T13:35:12.000000
Output for 5.4.45
2015-09-12T07:42:52.000000
Output for 5.4.44
2015-09-12T07:42:49.000000
Output for 5.4.43
2015-09-12T07:42:45.000000
Output for 5.4.42
2015-07-08T22:08:14.000000
Output for 5.4.41
2015-05-26T08:35:07.000000
Output for 5.4.40
2015-05-02T13:25:59.000000
Output for 5.4.39
2015-05-02T13:25:58.000000
Output for 5.4.38
2015-03-01T02:23:06.000000
Output for 5.4.36 - 5.4.37
2015-02-06T11:23:10.000000
Output for 5.4.35
2014-11-16T13:05:38.000000
Output for 5.4.34
2014-11-16T13:05:37.000000
Output for 5.4.31 - 5.4.32
2014-09-04T12:22:03.000000
Output for 5.4.15 - 5.4.30
2014-07-27T16:54:50.000000
Output for 5.3.23 - 5.3.28, 5.4.0 - 5.4.14
2014-07-27T16:54:51.000000
Output for 5.3.29
2014-09-04T12:22:02.000000
Output for 5.3.2 - 5.3.22
2014-07-27T16:54:52.000000
Output for 5.2.2 - 5.3.1
2014-07-27T16:54:53.000000
Output for 5.2.0 - 5.2.1
2014-07-27T16:54:53.u
Output for 5.0.0 - 5.1.6
Fatal error: Class 'DateTime' not found in /in/5anrb on line 3
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Fatal error: Cannot instantiate non-existent class: datetime in /in/5anrb on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot instantiate non-existent class: datetime in /in/5anrb on line 3