3v4l.org

run code in 300+ PHP versions simultaneously
<?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 git.master, git.master_jit, rfc.property-hooks
Deprecated: Return type of extension\calendar\classes\Test::add($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/UAEf9 on line 9 2014-10-11T14:50:40+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:
57.77 ms | 401 KiB | 8 Q