3v4l.org

run code in 300+ PHP versions simultaneously
<?php $period = new DatePeriod(new DateTimeImmutable("now"), new DateInterval("P2Y4DT6H8M"), 2); var_dump($period->getEndDate());

preferences:
77.84 ms | 404 KiB | 5 Q