3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = new DateTime('2008-12-29 00:00'); $end = new DateTime('2009-01-7 00:00'); $point = $start; while($point <= $end){ echo $point->format('YW') . "\t"; echo $point->format('m-d-Y') . "\n"; $point = $point->modify('next week'); }

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
218.2 ms | 2434 KiB | 8 Q