3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $date = new DateTime(); echo $date->format(DateTime::ISO8601);
Output for 5.6.28, 7.0.14 - 7.1.0
2014-09-01T17:03:58+0200
Output for 7.0.6
2016-05-03T17:25:52+0200
Output for 7.0.5
2016-04-03T05:54:18+0200
Output for 7.0.4
2016-03-10T17:35:58+0100
Output for 7.0.3
2016-03-18T18:23:14+0100
Output for 7.0.2
2016-03-23T00:46:07+0100
Output for 7.0.1
2016-03-24T04:34:50+0100
Output for 7.0.0
2016-03-27T06:31:30+0200
Output for 5.6.21
2016-05-02T12:35:56+0200
Output for 5.6.20
2016-04-10T04:52:51+0200
Output for 5.6.19
2016-03-08T01:44:37+0100
Output for 5.6.18
2016-03-15T10:16:29+0100
Output for 5.6.17
2016-03-19T22:09:13+0100
Output for 5.6.16
2016-03-28T07:18:53+0200
Output for 5.6.15
2016-03-29T08:09:58+0200
Output for 5.6.14
2016-04-02T10:04:34+0200
Output for 5.6.13
2016-04-15T14:24:36+0200
Output for 5.6.12
2016-04-20T04:52:09+0200
Output for 5.6.11
2016-04-24T11:06:39+0200
Output for 5.6.10
2016-04-25T13:17:50+0200
Output for 5.6.9
2016-04-27T18:27:03+0200
Output for 5.6.8
2016-04-30T03:19:32+0200
Output for 5.5.35
2016-05-22T18:41:59+0200
Output for 5.5.34
2016-04-11T07:06:27+0200
Output for 5.5.33
2016-03-09T04:23:05+0100
Output for 5.5.32
2016-03-17T14:00:49+0100
Output for 5.5.31
2016-03-21T01:05:45+0100
Output for 5.5.30
2016-04-01T10:03:10+0200
Output for 5.5.29
2016-04-17T04:49:11+0200
Output for 5.5.28
2016-04-21T08:04:20+0200
Output for 5.5.27
2016-04-22T09:55:26+0200
Output for 5.5.26
2016-04-26T15:59:37+0200
Output for 5.5.25
2016-04-28T22:50:58+0200
Output for 5.5.24
2016-05-24T05:29:53+0200
Output for 5.4.45
2015-09-09T22:21:27+0200
Output for 5.4.44
2015-08-29T19:40:09+0200
Output for 5.4.43
2015-08-29T19:40:06+0200
Output for 5.4.42
2015-08-29T19:40:04+0200
Output for 5.4.41
2015-06-07T13:04:17+0200
Output for 5.4.40
2015-05-14T05:09:38+0200
Output for 5.4.39
2015-05-14T05:09:37+0200
Output for 5.4.38
2015-02-27T22:33:32+0100
Output for 5.4.37
2015-02-03T22:27:25+0100
Output for 5.4.36
2015-02-03T22:27:24+0100
Output for 5.4.35
2014-11-14T13:25:10+0100
Output for 5.4.34
2014-11-13T21:14:09+0100
Output for 5.4.24 - 5.4.32
2014-09-01T17:04:02+0200
Output for 5.4.2 - 5.4.23
2014-09-01T17:04:03+0200
Output for 5.3.11 - 5.4.1
2014-09-01T17:04:04+0200
Output for 5.2.8 - 5.3.10
2014-09-01T17:04:05+0200
Output for 5.2.0 - 5.2.7
2014-09-01T17:04:06+0200
Output for 5.0.0 - 5.1.6
Fatal error: Class 'DateTime' not found in /in/EfBAL on line 2
Process exited with code 255.
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected ')', expecting '(' in /in/EfBAL 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/EfBAL on line 3
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error, expecting `'('' in /in/EfBAL on line 3
Process exited with code 255.