3v4l.org

run code in 300+ PHP versions simultaneously
<?php $row2['post_date'] = "2013-12-02 10:00:00"; $now = new DateTime(); $post = new DateTime($row2['post_date']); $interval = $now->diff($post); echo "Updated " . $interval->h . " hours ago";

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
150.39 ms | 2642 KiB | 8 Q