3v4l.org

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