3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $expire = new DateTime(); $expire->add(new DateInterval('P01Y')); // Support sold seperately has 1 year expire time print $expire->format(DateTime::ISO8601);
based on uirWM
Output for 5.6.28, 7.0.14 - 7.1.0
2015-08-01T20:15:54+0200
Output for 7.0.6
2017-05-03T17:31:36+0200
Output for 7.0.5
2017-04-03T05:59:42+0200
Output for 7.0.4
2017-03-10T17:41:34+0100
Output for 7.0.3
2017-03-18T18:29:35+0100
Output for 7.0.2
2017-03-23T00:52:26+0100
Output for 7.0.1
2017-03-24T04:40:28+0100
Output for 7.0.0
2017-03-27T06:37:08+0200
Output for hhvm-3.12.0
2017-03-13T04:40:58+0100
Output for hhvm-3.10.0
2017-03-31T00:03:45+0200
Output for 5.6.21
2017-05-02T12:41:41+0200
Output for 5.6.20
2017-04-10T04:58:24+0200
Output for 5.6.19
2017-03-08T01:50:57+0100
Output for 5.6.18
2017-03-15T10:25:08+0100
Output for 5.6.17
2017-03-19T22:15:17+0100
Output for 5.6.16
2017-03-28T07:24:24+0200
Output for 5.6.15
2017-03-29T08:15:28+0200
Output for 5.6.14
2017-04-02T10:09:51+0200
Output for 5.6.13
2017-04-15T14:30:12+0200
Output for 5.6.12
2017-04-20T04:57:55+0200
Output for 5.6.11
2017-04-24T11:12:58+0200
Output for 5.6.10
2017-04-25T13:23:47+0200
Output for 5.6.9
2017-04-27T18:32:51+0200
Output for 5.6.8
2017-04-30T03:25:34+0200
Output for 5.5.35
2017-05-22T18:48:48+0200
Output for 5.5.34
2017-04-11T07:11:48+0200
Output for 5.5.33
2017-03-09T04:29:04+0100
Output for 5.5.32
2017-03-17T14:07:19+0100
Output for 5.5.31
2017-03-21T01:12:13+0100
Output for 5.5.30
2017-04-01T10:08:50+0200
Output for 5.5.29
2017-04-17T04:54:48+0200
Output for 5.5.28
2017-04-21T08:10:32+0200
Output for 5.5.27
2017-04-22T10:00:58+0200
Output for 5.5.26
2017-04-26T16:05:59+0200
Output for 5.5.25
2017-04-28T22:56:49+0200
Output for 5.5.24
2017-05-24T05:35:07+0200
Output for 5.4.45
2016-09-10T00:11:32+0200
Output for 5.4.44
2016-08-29T22:40:46+0200
Output for 5.4.43
2016-08-29T22:40:43+0200
Output for 5.4.42
2016-08-29T22:40:42+0200
Output for 5.4.41
2016-06-07T14:44:11+0200
Output for 5.4.40
2016-05-14T09:23:30+0200
Output for 5.4.39
2016-05-14T09:23:29+0200
Output for 5.4.38
2016-02-28T01:16:08+0100
Output for 5.4.36 - 5.4.37
2016-02-04T02:13:39+0100
Output for 5.4.35
2015-11-14T14:48:50+0100
Output for 5.4.34
2015-11-14T01:42:00+0100
Output for 5.3.29, 5.4.32
2015-08-28T15:45:43+0200
Output for 5.4.13 - 5.4.31
2015-08-01T20:15:58+0200
Output for 5.3.20 - 5.3.28, 5.4.0 - 5.4.12
2015-08-01T20:15:59+0200
Output for 5.3.0 - 5.3.19
2015-08-01T20:16:00+0200
Output for 5.2.0 - 5.2.17
Fatal error: Call to undefined method DateTime::add() in /in/hnWsf on line 4
Process exited with code 255.
Output for 5.0.0 - 5.1.6
Fatal error: Class 'DateTime' not found in /in/hnWsf on line 3
Process exited with code 255.
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected ')', expecting '(' in /in/hnWsf on line 5
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/hnWsf on line 5
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error, expecting `'('' in /in/hnWsf on line 5
Process exited with code 255.