3v4l.org

run code in 300+ PHP versions simultaneously
<?php $from = new DateTime(date('Y-m-d 00:00:00', strtotime("2016-10-19 22:00:00"))); $to = new DateTime(date('Y-m-d 00:00:00', strtotime("today"))); var_dump($to->diff($from)->format('%a'));

preferences:
65.58 ms | 402 KiB | 5 Q