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.

preferences:
75.82 ms | 404 KiB | 5 Q