3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = DateTime::createFromFormat('Y-m-d H:i:s', '2012-07-13 01:00:00', new DateTimeZone('Europe/Berlin')); $end = DateTime::createFromFormat('Y-m-d H:i:s', '2012-07-13 01:30:00', new DateTimeZone('Europe/Berlin')); while($start <= $end) { echo $start->format('H:i:s'), "\n"; $start->modify('+10 minutes'); }

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
155.57 ms | 3045 KiB | 8 Q