3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace extension\calendar\classes { error_reporting(E_ALL); 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 git.master, git.master_jit, rfc.property-hooks
Deprecated: Return type of extension\calendar\classes\Test::add(DateInterval $interval) should either be compatible with DateTime::add(DateInterval $interval): DateTime, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/bNiBm on line 11 2014-10-11T14:42:22+02:00

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
51.49 ms | 401 KiB | 8 Q