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(\DateInterval $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 7.0.14 - 7.1.0
Warning: Declaration of extension\calendar\classes\Test::add(DateInterval $interval) should be compatible with DateTime::add($interval) in /in/UhPWk on line 12 2014-10-11T14:44:32+02:00
Output for 7.0.6
Warning: Declaration of extension\calendar\classes\Test::add(DateInterval $interval) should be compatible with DateTime::add($interval) in /in/UhPWk on line 12 2016-09-03T16:23:51+02:00
Output for 7.0.5
Warning: Declaration of extension\calendar\classes\Test::add(DateInterval $interval) should be compatible with DateTime::add($interval) in /in/UhPWk on line 12 2016-08-03T04:55:12+02:00
Output for 7.0.4
Warning: Declaration of extension\calendar\classes\Test::add(DateInterval $interval) should be compatible with DateTime::add($interval) in /in/UhPWk on line 12 2016-07-10T16:29:55+02:00
Output for 7.0.3
Warning: Declaration of extension\calendar\classes\Test::add(DateInterval $interval) should be compatible with DateTime::add($interval) in /in/UhPWk on line 12 2016-07-18T17:12:25+02:00
Output for 7.0.2
Warning: Declaration of extension\calendar\classes\Test::add(DateInterval $interval) should be compatible with DateTime::add($interval) in /in/UhPWk on line 12 2016-07-22T23:19:10+02:00
Output for 7.0.1
Warning: Declaration of extension\calendar\classes\Test::add(DateInterval $interval) should be compatible with DateTime::add($interval) in /in/UhPWk on line 12 2016-07-24T03:32:33+02:00
Output for 7.0.0
Warning: Declaration of extension\calendar\classes\Test::add(DateInterval $interval) should be compatible with DateTime::add($interval) in /in/UhPWk on line 12 2016-07-27T05:29:35+02:00
Output for 5.6.28
Strict Standards: Declaration of extension\calendar\classes\Test::add() should be compatible with DateTime::add($interval) in /in/UhPWk on line 12 2014-10-11T14:44:32+02:00
Output for 5.6.21
Strict Standards: Declaration of extension\calendar\classes\Test::add() should be compatible with DateTime::add($interval) in /in/UhPWk on line 12 2016-09-02T11:34:16+02:00
Output for 5.6.20
Strict Standards: Declaration of extension\calendar\classes\Test::add() should be compatible with DateTime::add($interval) in /in/UhPWk on line 12 2016-08-10T03:53:02+02:00
Output for 5.6.19
Strict Standards: Declaration of extension\calendar\classes\Test::add() should be compatible with DateTime::add($interval) in /in/UhPWk on line 12 2016-07-08T00:16:48+02:00
Output for 5.6.18
Strict Standards: Declaration of extension\calendar\classes\Test::add() should be compatible with DateTime::add($interval) in /in/UhPWk on line 12 2016-07-15T09:09:05+02:00
Output for 5.6.17
Strict Standards: Declaration of extension\calendar\classes\Test::add() should be compatible with DateTime::add($interval) in /in/UhPWk on line 12 2016-07-19T21:01:38+02:00
Output for 5.6.16
Strict Standards: Declaration of extension\calendar\classes\Test::add() should be compatible with DateTime::add($interval) in /in/UhPWk on line 12 2016-07-28T06:17:44+02:00
Output for 5.6.15
Strict Standards: Declaration of extension\calendar\classes\Test::add() should be compatible with DateTime::add($interval) in /in/UhPWk on line 12 2016-07-29T07:09:05+02:00
Output for 5.6.14
Strict Standards: Declaration of extension\calendar\classes\Test::add() should be compatible with DateTime::add($interval) in /in/UhPWk on line 12 2016-08-02T09:06:55+02:00
Output for 5.6.13
Strict Standards: Declaration of extension\calendar\classes\Test::add() should be compatible with DateTime::add($interval) in /in/UhPWk on line 12 2016-08-15T13:22:49+02:00
Output for 5.6.12
Strict Standards: Declaration of extension\calendar\classes\Test::add() should be compatible with DateTime::add($interval) in /in/UhPWk on line 12 2016-08-20T03:47:22+02:00
Output for 5.6.11
Strict Standards: Declaration of extension\calendar\classes\Test::add() should be compatible with DateTime::add($interval) in /in/UhPWk on line 12 2016-08-23T10:19:05+02:00
Output for 5.6.10
Strict Standards: Declaration of extension\calendar\classes\Test::add() should be compatible with DateTime::add($interval) in /in/UhPWk on line 12 2016-08-25T12:13:38+02:00
Output for 5.6.9
Strict Standards: Declaration of extension\calendar\classes\Test::add() should be compatible with DateTime::add($interval) in /in/UhPWk on line 12 2016-08-27T17:21:02+02:00
Output for 5.6.8
Strict Standards: Declaration of extension\calendar\classes\Test::add() should be compatible with DateTime::add($interval) in /in/UhPWk on line 12 2016-08-30T02:05:02+02:00
Output for 5.5.35
Strict Standards: Declaration of extension\calendar\classes\Test::add() should be compatible with DateTime::add($interval) in /in/UhPWk on line 12 2016-09-22T16:41:14+02:00
Output for 5.5.34
Strict Standards: Declaration of extension\calendar\classes\Test::add() should be compatible with DateTime::add($interval) in /in/UhPWk on line 12 2016-08-11T06:07:16+02:00
Output for 5.5.33
Strict Standards: Declaration of extension\calendar\classes\Test::add() should be compatible with DateTime::add($interval) in /in/UhPWk on line 12 2016-07-09T03:17:27+02:00
Output for 5.5.32
Strict Standards: Declaration of extension\calendar\classes\Test::add() should be compatible with DateTime::add($interval) in /in/UhPWk on line 12 2016-07-17T12:48:39+02:00
Output for 5.5.31
Strict Standards: Declaration of extension\calendar\classes\Test::add() should be compatible with DateTime::add($interval) in /in/UhPWk on line 12 2016-07-20T23:49:28+02:00
Output for 5.5.30
Strict Standards: Declaration of extension\calendar\classes\Test::add() should be compatible with DateTime::add($interval) in /in/UhPWk on line 12 2016-08-01T09:02:41+02:00
Output for 5.5.29
Strict Standards: Declaration of extension\calendar\classes\Test::add() should be compatible with DateTime::add($interval) in /in/UhPWk on line 12 2016-08-17T03:45:19+02:00
Output for 5.5.28
Strict Standards: Declaration of extension\calendar\classes\Test::add() should be compatible with DateTime::add($interval) in /in/UhPWk on line 12 2016-08-21T06:58:13+02:00
Output for 5.5.27
Strict Standards: Declaration of extension\calendar\classes\Test::add() should be compatible with DateTime::add($interval) in /in/UhPWk on line 12 2016-08-22T08:54:53+02:00
Output for 5.5.26
Strict Standards: Declaration of extension\calendar\classes\Test::add() should be compatible with DateTime::add($interval) in /in/UhPWk on line 12 2016-08-26T14:54:07+02:00
Output for 5.5.25
Strict Standards: Declaration of extension\calendar\classes\Test::add() should be compatible with DateTime::add($interval) in /in/UhPWk on line 12 2016-08-28T21:42:21+02:00
Output for 5.5.24
Strict Standards: Declaration of extension\calendar\classes\Test::add() should be compatible with DateTime::add($interval) in /in/UhPWk on line 12 2016-09-24T04:29:15+02:00
Output for 5.4.45
Strict Standards: Declaration of extension\calendar\classes\Test::add() should be compatible with DateTime::add($interval) in /in/UhPWk on line 12 2016-01-14T13:07:18+01:00
Output for 5.4.44
Strict Standards: Declaration of extension\calendar\classes\Test::add() should be compatible with DateTime::add($interval) in /in/UhPWk on line 12 2016-01-14T13:07:16+01:00
Output for 5.4.43
Strict Standards: Declaration of extension\calendar\classes\Test::add() should be compatible with DateTime::add($interval) in /in/UhPWk on line 12 2016-01-14T13:07:12+01:00
Output for 5.4.42
Strict Standards: Declaration of extension\calendar\classes\Test::add() should be compatible with DateTime::add($interval) in /in/UhPWk on line 12 2016-01-14T13:07:11+01:00
Output for 5.4.41
Strict Standards: Declaration of extension\calendar\classes\Test::add() should be compatible with DateTime::add($interval) in /in/UhPWk on line 12 2016-01-14T13:07:09+01:00
Output for 5.4.40
Strict Standards: Declaration of extension\calendar\classes\Test::add() should be compatible with DateTime::add($interval) in /in/UhPWk on line 12 2016-01-14T13:07:08+01:00
Output for 5.4.39
Strict Standards: Declaration of extension\calendar\classes\Test::add() should be compatible with DateTime::add($interval) in /in/UhPWk on line 12 2016-01-14T13:07:07+01:00
Output for 5.4.38
Strict Standards: Declaration of extension\calendar\classes\Test::add() should be compatible with DateTime::add($interval) in /in/UhPWk on line 12 2015-07-04T00:52:06+02:00
Output for 5.4.37
Strict Standards: Declaration of extension\calendar\classes\Test::add() should be compatible with DateTime::add($interval) in /in/UhPWk on line 12 2015-07-04T00:52:00+02:00
Output for 5.4.34 - 5.4.36
Strict Standards: Declaration of extension\calendar\classes\Test::add() should be compatible with DateTime::add($interval) in /in/UhPWk on line 12 2015-07-04T00:51:59+02:00
Output for 5.4.32
Strict Standards: Declaration of extension\calendar\classes\Test::add() should be compatible with DateTime::add($interval) in /in/UhPWk on line 12 2015-01-12T19:26:16+01:00
Output for 5.4.31
Strict Standards: Declaration of extension\calendar\classes\Test::add() should be compatible with DateTime::add($interval) in /in/UhPWk on line 12 2015-01-12T19:26:15+01:00
Output for 5.4.30
Strict Standards: Declaration of extension\calendar\classes\Test::add() should be compatible with DateTime::add($interval) in /in/UhPWk on line 12 2015-01-12T19:26:09+01:00
Output for 5.4.23 - 5.4.29
Strict Standards: Declaration of extension\calendar\classes\Test::add() should be compatible with DateTime::add($interval) in /in/UhPWk on line 12 2014-10-11T14:44:35+02:00
Output for 5.4.7 - 5.4.22
Strict Standards: Declaration of extension\calendar\classes\Test::add() should be compatible with DateTime::add($interval) in /in/UhPWk on line 12 2014-10-11T14:44:36+02:00
Output for 5.4.0 - 5.4.6
Strict Standards: Declaration of extension\calendar\classes\Test::add() should be compatible with DateTime::add($interval) in /in/UhPWk on line 12 2014-10-11T14:44:37+02:00
Output for 5.3.29
Strict Standards: Declaration of extension\calendar\classes\Test::add() should be compatible with that of DateTime::add() in /in/UhPWk on line 12 2015-01-12T19:26:10+01:00
Output for 5.3.22 - 5.3.28
Strict Standards: Declaration of extension\calendar\classes\Test::add() should be compatible with that of DateTime::add() in /in/UhPWk on line 12 2014-10-11T14:44:37+02:00
Output for 5.3.7 - 5.3.21
Strict Standards: Declaration of extension\calendar\classes\Test::add() should be compatible with that of DateTime::add() in /in/UhPWk on line 12 2014-10-11T14:44:38+02:00
Output for 5.3.0 - 5.3.6
Strict Standards: Declaration of extension\calendar\classes\Test::add() should be compatible with that of DateTime::add() in /in/UhPWk on line 12 2014-10-11T14:44:39+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/UhPWk 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/UhPWk on line 3
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/UhPWk on line 3
Process exited with code 255.