3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo (new \DateTime())->format(DateTime::ISO8601);
based on mYPfZ
Output for 5.6.28, 7.0.20 - 7.2.0
2015-10-27T11:14:14+0100
Output for 7.0.6
2016-05-03T17:53:11+0200
Output for 7.0.5
2016-04-03T06:20:58+0200
Output for 7.0.4
2016-03-10T18:05:57+0100
Output for 7.0.3
2016-03-18T18:53:45+0100
Output for 7.0.2
2016-03-23T01:17:38+0100
Output for 7.0.1
2016-03-24T05:02:04+0100
Output for 7.0.0
2016-03-27T06:58:35+0200
Output for 5.6.21
2016-05-02T13:03:56+0200
Output for 5.6.20
2016-04-10T05:20:12+0200
Output for 5.6.19
2016-03-08T02:16:03+0100
Output for 5.6.18
2016-03-15T10:53:12+0100
Output for 5.6.17
2016-03-19T22:38:28+0100
Output for 5.6.16
2016-03-28T07:45:55+0200
Output for 5.6.15
2016-03-29T08:36:46+0200
Output for 5.6.14
2016-04-02T10:30:12+0200
Output for 5.6.13
2016-04-15T14:50:48+0200
Output for 5.6.12
2016-04-20T05:19:03+0200
Output for 5.6.11
2016-04-24T11:35:04+0200
Output for 5.6.10
2016-04-25T13:44:36+0200
Output for 5.6.9
2016-04-27T18:54:01+0200
Output for 5.6.8
2016-04-30T03:47:25+0200
Output for 5.5.35
2016-05-22T19:26:53+0200
Output for 5.5.34
2016-04-11T07:32:35+0200
Output for 5.5.33
2016-03-09T04:52:44+0100
Output for 5.5.32
2016-03-17T14:35:45+0100
Output for 5.5.31
2016-03-21T01:37:04+0100
Output for 5.5.30
2016-04-01T10:30:16+0200
Output for 5.5.29
2016-04-17T05:15:00+0200
Output for 5.5.28
2016-04-21T08:31:55+0200
Output for 5.5.27
2016-04-22T10:21:05+0200
Output for 5.5.26
2016-04-26T16:27:14+0200
Output for 5.5.25
2016-04-28T23:18:13+0200
Output for 5.5.24
2016-05-24T16:16:46+0200
Output for 5.4.44 - 5.4.45
2015-10-27T11:14:21+0100
Output for 5.4.32 - 5.4.43
2015-10-27T11:14:22+0100
Output for 5.4.20 - 5.4.31
2015-10-27T11:14:23+0100
Output for 5.4.9 - 5.4.19
2015-10-27T11:14:24+0100
Output for 5.4.0 - 5.4.8
2015-10-27T11:14:25+0100
Output for 5.3.19 - 5.3.29
Parse error: syntax error, unexpected T_OBJECT_OPERATOR, expecting ',' or ';' in /in/XDTYq on line 2
Process exited with code 255.