3v4l.org

run code in 300+ PHP versions simultaneously
<?php $p = new DatePeriod(new DateTime('2012-07-01'), new DateInterval('P7D'), 4); $p->getEndDate();
Output for 7.0.5 - 7.0.20, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.29, 8.2.0 - 8.2.23, 8.3.0 - 8.3.11
Output for 7.0.0 - 7.0.4

Process exited with code 139.

preferences:
71.66 ms | 405 KiB | 5 Q