3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = new \DateTime('1st January'); $end = new \DateTime('31st December'); $interval = new \DateInterval('P1D'); $period = new \DatePeriod($start, $interval, $end->modify('+ 1 day')); $year = array(); foreach($period as $day){ $year[$day->format('M')][(int)$day->format('d')] = $day->format('D'); } var_dump($year);

Abusive script

This script was stopped while abusing our resources

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
195.14 ms | 7381 KiB | 11 Q