3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php namespace extension\calendar\classes { error_reporting(E_ALL); ini_set('display_errors', 1); use DateInterval; use DateTime; 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/ghq7I on line 15 2014-10-11T14:41:02+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/ghq7I on line 15 2016-09-03T04:09:41+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/ghq7I on line 15 2016-08-02T17:20:48+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/ghq7I on line 15 2016-07-10T03:05:10+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/ghq7I on line 15 2016-07-18T03:20:02+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/ghq7I on line 15 2016-07-21T13:51:27+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/ghq7I on line 15 2016-07-23T14:05:11+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/ghq7I on line 15 2016-07-26T16:24:41+02:00
Output for hhvm-3.12.0
2016-07-11T09:22:35+02:00
Output for hhvm-3.10.0
2016-07-29T23:09:27+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/ghq7I on line 15 2014-10-11T14:41:02+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/ghq7I on line 15 2016-09-01T23:13:35+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/ghq7I on line 15 2016-08-09T12:35:51+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/ghq7I on line 15 2016-07-07T01:59:59+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/ghq7I on line 15 2016-07-14T14:27:21+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/ghq7I on line 15 2016-07-19T07:48:05+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/ghq7I on line 15 2016-07-27T18:10:52+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/ghq7I on line 15 2016-07-28T19:03:17+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/ghq7I on line 15 2016-08-01T21:37:57+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/ghq7I on line 15 2016-08-15T01:35:17+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/ghq7I on line 15 2016-08-19T14:43:18+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/ghq7I on line 15 2016-08-22T21:58:52+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/ghq7I on line 15 2016-08-24T23:36:24+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/ghq7I on line 15 2016-08-27T04:49: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/ghq7I on line 15 2016-08-29T12:34:03+02:00
Output for 5.6.7
Strict Standards: Declaration of extension\calendar\classes\Test::add() should be compatible with DateTime::add($interval) in /in/ghq7I on line 15 2016-09-25T00:51:17+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/ghq7I on line 15 2016-09-22T02:41:41+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/ghq7I on line 15 2016-08-10T18:33:09+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/ghq7I on line 15 2016-07-08T13:59:51+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/ghq7I on line 15 2016-07-16T19:43:49+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/ghq7I on line 15 2016-07-20T10:39:27+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/ghq7I on line 15 2016-07-31T21:05:02+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/ghq7I on line 15 2016-08-16T15:38:55+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/ghq7I on line 15 2016-08-20T17:59:52+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/ghq7I on line 15 2016-08-21T20:26:19+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/ghq7I on line 15 2016-08-26T02:07:37+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/ghq7I on line 15 2016-08-28T08:07:25+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/ghq7I on line 15 2016-08-30T15:31:03+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/ghq7I on line 15 2016-01-21T00:13:29+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/ghq7I on line 15 2016-01-21T00:13:24+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/ghq7I on line 15 2015-11-10T19:42:54+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/ghq7I on line 15 2015-10-27T17:13:00+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/ghq7I on line 15 2015-09-26T06:29:00+02:00
Output for 5.4.40
Strict Standards: Declaration of extension\calendar\classes\Test::add() should be compatible with DateTime::add($interval) in /in/ghq7I on line 15 2015-09-02T07:39:53+02:00
Output for 5.4.39
Strict Standards: Declaration of extension\calendar\classes\Test::add() should be compatible with DateTime::add($interval) in /in/ghq7I on line 15 2015-09-02T07:39:52+02:00
Output for 5.4.38
Strict Standards: Declaration of extension\calendar\classes\Test::add() should be compatible with DateTime::add($interval) in /in/ghq7I on line 15 2015-06-28T22:29:11+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/ghq7I on line 15 Warning: ini_set() has been disabled for security reasons in /in/ghq7I on line 6 2015-06-06T06:04:03+02:00
Output for 5.4.36
Strict Standards: Declaration of extension\calendar\classes\Test::add() should be compatible with DateTime::add($interval) in /in/ghq7I on line 15 Warning: ini_set() has been disabled for security reasons in /in/ghq7I on line 6 2015-06-06T06:04:02+02:00
Output for 5.4.35
Strict Standards: Declaration of extension\calendar\classes\Test::add() should be compatible with DateTime::add($interval) in /in/ghq7I on line 15 Warning: ini_set() has been disabled for security reasons in /in/ghq7I on line 6 2015-03-16T05:22:37+01:00
Output for 5.4.34
Strict Standards: Declaration of extension\calendar\classes\Test::add() should be compatible with DateTime::add($interval) in /in/ghq7I on line 15 Warning: ini_set() has been disabled for security reasons in /in/ghq7I on line 6 2015-03-16T05:22:36+01:00
Output for 5.4.32
Strict Standards: Declaration of extension\calendar\classes\Test::add() should be compatible with DateTime::add($interval) in /in/ghq7I on line 15 Warning: ini_set() has been disabled for security reasons in /in/ghq7I on line 6 2015-01-04T01:34:09+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/ghq7I on line 15 Warning: ini_set() has been disabled for security reasons in /in/ghq7I on line 6 2015-01-04T01:34:08+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/ghq7I on line 15 Warning: ini_set() has been disabled for security reasons in /in/ghq7I on line 6 2015-01-04T01:34:04+01:00
Output for 5.4.25 - 5.4.29
Strict Standards: Declaration of extension\calendar\classes\Test::add() should be compatible with DateTime::add($interval) in /in/ghq7I on line 15 Warning: ini_set() has been disabled for security reasons in /in/ghq7I on line 6 2014-10-11T14:41:06+02:00
Output for 5.4.16 - 5.4.24
Strict Standards: Declaration of extension\calendar\classes\Test::add() should be compatible with DateTime::add($interval) in /in/ghq7I on line 15 Warning: ini_set() has been disabled for security reasons in /in/ghq7I on line 6 2014-10-11T14:41:07+02:00
Output for 5.4.6 - 5.4.15
Strict Standards: Declaration of extension\calendar\classes\Test::add() should be compatible with DateTime::add($interval) in /in/ghq7I on line 15 Warning: ini_set() has been disabled for security reasons in /in/ghq7I on line 6 2014-10-11T14:41:08+02:00
Output for 5.4.0 - 5.4.5
Strict Standards: Declaration of extension\calendar\classes\Test::add() should be compatible with DateTime::add($interval) in /in/ghq7I on line 15 Warning: ini_set() has been disabled for security reasons in /in/ghq7I on line 6 2014-10-11T14:41:09+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/ghq7I on line 15 Warning: ini_set() has been disabled for security reasons in /in/ghq7I on line 6 2015-01-04T01:34:04+01:00
Output for 5.3.25 - 5.3.28
Strict Standards: Declaration of extension\calendar\classes\Test::add() should be compatible with that of DateTime::add() in /in/ghq7I on line 15 Warning: ini_set() has been disabled for security reasons in /in/ghq7I on line 6 2014-10-11T14:41:09+02:00
Output for 5.3.14 - 5.3.24
Strict Standards: Declaration of extension\calendar\classes\Test::add() should be compatible with that of DateTime::add() in /in/ghq7I on line 15 Warning: ini_set() has been disabled for security reasons in /in/ghq7I on line 6 2014-10-11T14:41:10+02:00
Output for 5.3.5 - 5.3.13
Strict Standards: Declaration of extension\calendar\classes\Test::add() should be compatible with that of DateTime::add() in /in/ghq7I on line 15 Warning: ini_set() has been disabled for security reasons in /in/ghq7I on line 6 2014-10-11T14:41:11+02:00
Output for 5.3.0 - 5.3.4
Strict Standards: Declaration of extension\calendar\classes\Test::add() should be compatible with that of DateTime::add() in /in/ghq7I on line 15 Warning: ini_set() has been disabled for security reasons in /in/ghq7I on line 6 2014-10-11T14:41:12+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/ghq7I 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/ghq7I on line 3
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/ghq7I on line 3
Process exited with code 255.