3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = new DateTime('2012-02-17'); $y = clone $x; $y->modify('last day of this month'); echo $x->format('d') . "\n"; echo $y->format('d') . "\n"; echo $y->format('d') - $x->format('d');

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
153.59 ms | 2083 KiB | 8 Q