3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date1 = new \DateTime('2013-02-03 00:00:01'); $date2 = new \DateTime('2013-02-03 00:00:01'); //var_dump($date); $interval = new DateInterval('P1M'); $date1->add($interval); $date2->add($interva2); var_dump($date1); var_dump($date2);
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Undefined variable $interva2 in /in/ln79K on line 7 Fatal error: Uncaught TypeError: DateTime::add(): Argument #1 ($interval) must be of type DateInterval, null given in /in/ln79K:7 Stack trace: #0 /in/ln79K(7): DateTime->add(NULL) #1 {main} thrown in /in/ln79K on line 7
Process exited with code 255.

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:
44.96 ms | 401 KiB | 8 Q