3v4l.org

run code in 300+ PHP versions simultaneously
<?php $billingDate = new \DateTime('2017-02-15'); $todayDate = new \DateTime(); $interval = date_diff($billingDate, $todayDate); $this->feePackageInfo->setDaysLeft($interval->d); echo $interval->d;

preferences:
54.18 ms | 402 KiB | 5 Q