3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tz = new DateTimeZone("Europe/Berlin"); $date = new DateTime("2014-11-06 02:44:13", $tz); $curDate = new DateTime("now", $tz); $interval = $curDate->diff($date); echo $interval->format("%a days ago");

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
206.14 ms | 2791 KiB | 10 Q