3v4l.org

run code in 300+ PHP versions simultaneously
<?php $datetime1 = new DateTime('now'); echo $datetime1->format('Y-m-d H:i') . "\r\n"; $datetime2 = new DateTime('first day of this month'); echo $datetime2->format('Y-m-d H:i') . "\r\n"; $datetime3 = new DateTime('first day'); echo $datetime3->format('Y-m-d H:i') . "\r\n";

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
208.18 ms | 2892 KiB | 8 Q