3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $dt = new DateTime("now", new DateTimeZone('UTC')); echo $dt->format(DateTime::ISO8601);
Output for 5.6.28, 7.0.14 - 7.1.0
2014-08-09T15:27:40+0000
Output for 7.0.6
2016-05-03T07:41:03+0000
Output for 7.0.5
2016-04-02T20:33:19+0000
Output for 7.0.4
2016-03-10T08:05:40+0000
Output for 7.0.3
2016-03-18T08:42:35+0000
Output for 7.0.2
2016-03-22T14:36:26+0000
Output for 7.0.1
2016-03-23T19:21:54+0000
Output for 7.0.0
2016-03-26T20:54:32+0000
Output for hhvm-3.12.0
2016-03-11T21:08:03+0000
Output for hhvm-3.10.0
2016-03-30T09:10:39+0000
Output for 5.6.21
2016-05-02T03:02:46+0000
Output for 5.6.20
2016-04-09T19:30:07+0000
Output for 5.6.19
2016-03-07T16:13:45+0000
Output for 5.6.18
2016-03-15T00:07:49+0000
Output for 5.6.17
2016-03-19T12:58:15+0000
Output for 5.6.16
2016-03-27T21:39:57+0000
Output for 5.6.15
2016-03-28T22:45:09+0000
Output for 5.6.14
2016-04-02T01:06:01+0000
Output for 5.6.13
2016-04-15T05:00:09+0000
Output for 5.6.12
2016-04-19T18:44:42+0000
Output for 5.6.11
2016-04-23T01:48:42+0000
Output for 5.6.10
2016-04-25T03:32:23+0000
Output for 5.6.9
2016-04-27T08:30:31+0000
Output for 5.6.8
2016-04-29T16:35:07+0000
Output for 5.5.35
2016-05-22T06:46:04+0000
Output for 5.5.34
2016-04-10T21:50:25+0000
Output for 5.5.33
2016-03-08T19:10:44+0000
Output for 5.5.32
2016-03-17T01:50:58+0000
Output for 5.5.31
2016-03-20T15:44:05+0000
Output for 5.5.30
2016-04-01T00:40:44+0000
Output for 5.5.29
2016-04-16T19:05:49+0000
Output for 5.5.28
2016-04-20T21:49:54+0000
Output for 5.5.27
2016-04-22T00:19:28+0000
Output for 5.5.26
2016-04-26T05:59:16+0000
Output for 5.5.25
2016-04-28T12:17:23+0000
Output for 5.5.24
2016-05-23T19:38:08+0000
Output for 5.4.45
2015-09-21T10:17:06+0000
Output for 5.4.44
2015-09-21T10:16:58+0000
Output for 5.4.43
2015-09-21T10:16:48+0000
Output for 5.4.42
2015-09-21T10:16:45+0000
Output for 5.4.41
2015-09-21T10:16:40+0000
Output for 5.4.40
2015-09-21T10:16:35+0000
Output for 5.4.39
2015-09-21T10:16:31+0000
Output for 5.4.38
2015-03-05T12:56:02+0000
Output for 5.4.36 - 5.4.37
2015-03-05T12:55:53+0000
Output for 5.4.34 - 5.4.35
2015-03-05T12:55:52+0000
Output for 5.3.29, 5.4.32
2014-08-28T09:07:25+0000
Output for 5.4.14 - 5.4.31
2014-08-09T15:27:45+0000
Output for 5.3.24 - 5.3.28, 5.4.0 - 5.4.13
2014-08-09T15:27:46+0000
Output for 5.3.5 - 5.3.23
2014-08-09T15:27:47+0000
Output for 5.2.0 - 5.3.4
2014-08-09T15:27:48+0000
Output for 5.0.0 - 5.1.6
Fatal error: Class 'DateTime' not found in /in/MQicS on line 3
Process exited with code 255.
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected ')', expecting '(' in /in/MQicS on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1
Parse error: parse error, unexpected ')', expecting '(' in /in/MQicS on line 3
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error, expecting `'('' in /in/MQicS on line 3
Process exited with code 255.