3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo (new DateTime)->modify('+1 seconds')->format(DateTime::ISO8601);
based on HEKHJ
Output for 5.6.28, 7.0.20 - 7.2.0
2015-11-01T15:12:31+0100
Output for 7.0.6
2016-05-03T18:05:27+0200
Output for 7.0.5
2016-04-03T06:32:05+0200
Output for 7.0.4
2016-03-10T18:17:26+0100
Output for 7.0.3
2016-03-18T19:21:02+0100
Output for 7.0.2
2016-03-23T01:30:29+0100
Output for 7.0.1
2016-03-24T05:13:22+0100
Output for 7.0.0
2016-03-27T07:10:01+0200
Output for 5.6.21
2016-05-02T13:15:14+0200
Output for 5.6.20
2016-04-10T05:31:16+0200
Output for 5.6.19
2016-03-08T02:27:55+0100
Output for 5.6.18
2016-03-15T11:10:28+0100
Output for 5.6.17
2016-03-19T22:50:38+0100
Output for 5.6.16
2016-03-28T07:57:03+0200
Output for 5.6.15
2016-03-29T08:47:53+0200
Output for 5.6.14
2016-04-02T10:40:32+0200
Output for 5.6.13
2016-04-15T15:02:03+0200
Output for 5.6.12
2016-04-20T05:30:54+0200
Output for 5.6.11
2016-04-24T11:46:54+0200
Output for 5.6.10
2016-04-25T13:56:08+0200
Output for 5.6.9
2016-04-27T19:06:03+0200
Output for 5.6.8
2016-04-30T03:59:05+0200
Output for 5.5.35
2016-05-22T19:41:47+0200
Output for 5.5.34
2016-04-11T07:43:15+0200
Output for 5.5.33
2016-03-09T05:06:41+0100
Output for 5.5.32
2016-03-17T14:48:05+0100
Output for 5.5.31
2016-03-21T01:50:03+0100
Output for 5.5.30
2016-04-01T10:41:29+0200
Output for 5.5.29
2016-04-17T05:26:05+0200
Output for 5.5.28
2016-04-21T08:44:15+0200
Output for 5.5.27
2016-04-22T10:32:30+0200
Output for 5.5.26
2016-04-26T16:39:13+0200
Output for 5.5.25
2016-04-28T23:30:10+0200
Output for 5.5.24
2016-05-24T06:04:59+0200
Output for 5.4.37 - 5.4.45
2015-11-01T15:12:41+0100
Output for 5.4.23 - 5.4.36
2015-11-01T15:12:42+0100
Output for 5.4.11 - 5.4.22
2015-11-01T15:12:43+0100
Output for 5.4.0 - 5.4.10
2015-11-01T15:12:44+0100
Output for 5.3.19 - 5.3.29
Parse error: syntax error, unexpected T_OBJECT_OPERATOR, expecting ',' or ';' in /in/t3sUC on line 3
Process exited with code 255.