3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php namespace extension\calendar\classes { error_reporting(E_ALL); class Test extends \DateTime { public function add($interval) { return parent::add($interval); // TODO: Change the autogenerated stub } } $t=new Test(); $t->add(new \DateInterval('P4M')); echo $t->format(\DateTime::W3C); }
Output for 5.6.28, 7.0.14 - 7.1.0
2014-10-11T14:50:40+02:00
Output for 7.0.6
2016-09-03T08:42:29+02:00
Output for 7.0.5
2016-08-02T21:37:52+02:00
Output for 7.0.4
2016-07-10T08:00:07+02:00
Output for 7.0.3
2016-07-18T08:34:18+02:00
Output for 7.0.2
2016-07-22T14:20:02+02:00
Output for 7.0.1
2016-07-23T19:20:33+02:00
Output for 7.0.0
2016-07-26T20:55:30+02:00
Output for hhvm-3.12.0
2016-08-01T01:20:41+02:00
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.6.21
2016-09-02T04:03:13+02:00
Output for 5.6.20
2016-08-09T20:32:09+02:00
Output for 5.6.19
2016-07-07T16:08:04+02:00
Output for 5.6.18
2016-07-14T23:53:36+02:00
Output for 5.6.17
2016-07-19T12:52:20+02:00
Output for 5.6.16
2016-07-27T22:41:22+02:00
Output for 5.6.15
2016-07-28T23:34:11+02:00
Output for 5.6.14
2016-08-02T02:09:27+02:00
Output for 5.6.13
2016-08-15T06:03:42+02:00
Output for 5.6.12
2016-08-19T19:42:59+02:00
Output for 5.6.11
2016-08-23T02:49:15+02:00
Output for 5.6.10
2016-08-25T04:32:38+02:00
Output for 5.6.9
2016-08-27T09:30:15+02:00
Output for 5.6.8
2016-08-29T17:31:57+02:00
Output for 5.6.7
2016-09-25T13:00:58+02:00
Output for 5.5.35
2016-09-22T07:46:27+02:00
Output for 5.5.34
2016-08-10T22:54:32+02:00
Output for 5.5.33
2016-07-08T18:56:13+02:00
Output for 5.5.32
2016-07-17T01:45:38+02:00
Output for 5.5.31
2016-07-20T15:38:38+02:00
Output for 5.5.30
2016-08-01T01:42:22+02:00
Output for 5.5.29
2016-08-16T20:09:03+02:00
Output for 5.5.28
2016-08-20T22:49:08+02:00
Output for 5.5.27
2016-08-22T01:19:59+02:00
Output for 5.5.26
2016-08-26T06:58:53+02:00
Output for 5.5.25
2016-08-28T13:03:50+02:00
Output for 5.5.24
2016-09-23T20:17:08+02:00
Output for 5.4.45
2016-01-14T13:07:27+01:00
Output for 5.4.44
2016-01-14T13:07:25+01:00
Output for 5.4.43
2016-01-14T13:07:22+01:00
Output for 5.4.42
2016-01-14T13:07:21+01:00
Output for 5.4.41
2016-01-14T13:07:19+01:00
Output for 5.4.40
2016-01-14T13:07:18+01:00
Output for 5.4.39
2016-01-14T13:07:17+01:00
Output for 5.4.38
2015-07-04T00:52:09+02:00
Output for 5.4.35 - 5.4.37
2015-07-04T00:52:03+02:00
Output for 5.4.34
2015-07-04T00:52:02+02:00
Output for 5.4.32
2015-01-12T19:26:24+01:00
Output for 5.4.31
2015-01-12T19:26:23+01:00
Output for 5.3.29, 5.4.30
2015-01-12T19:26:18+01:00
Output for 5.4.22 - 5.4.29
2014-10-11T14:50:44+02:00
Output for 5.4.11 - 5.4.21
2014-10-11T14:50:45+02:00
Output for 5.4.0 - 5.4.10
2014-10-11T14:50:46+02:00
Output for 5.3.19 - 5.3.28
2014-10-11T14:50:47+02:00
Output for 5.3.7 - 5.3.18
2014-10-11T14:50:48+02:00
Output for 5.3.0 - 5.3.6
2014-10-11T14:50:49+02:00
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.2.17
Parse error: syntax error, unexpected T_STRING in /in/UAEf9 on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected T_STRING in /in/UAEf9 on line 3
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/UAEf9 on line 3
Process exited with code 255.