3v4l.org

run code in 300+ PHP versions simultaneously
<?php $period = new DatePeriod(new DateTimeImmutable("now"), new DateInterval("P2Y4DT6H8M"), 2); var_dump($period->getStartDate()); var_dump($period->getEndDate()); // segfault? Nice.
Output for git.master
object(DateTimeImmutable)#3 (3) { ["date"]=> string(26) "2016-08-26 15:16:11.003973" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } NULL
Output for git.master_jit
object(DateTimeImmutable)#3 (3) { ["date"]=> string(26) "2016-08-26 15:16:11.003836" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } NULL
Output for rfc.property-hooks
object(DateTimeImmutable)#3 (3) { ["date"]=> string(26) "2016-08-26 15:16:11.003682" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } NULL

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:
32.7 ms | 408 KiB | 5 Q