<?php
// your code goes here
$expira = new DateTime("2017-10-05 15:42:54");
$today = new DateTime("today");
$interval = $expira->diff($today);
print_r($interval->format("%a days"));
PD9waHAKCi8vIHlvdXIgY29kZSBnb2VzIGhlcmUKCiRleHBpcmEgPSBuZXcgRGF0ZVRpbWUoIjIwMTctMTAtMDUgMTU6NDI6NTQiKTsKJHRvZGF5ID0gbmV3IERhdGVUaW1lKCJ0b2RheSIpOwoKJGludGVydmFsID0gJGV4cGlyYS0+ZGlmZigkdG9kYXkpOwoKcHJpbnRfcigkaW50ZXJ2YWwtPmZvcm1hdCgiJWEgZGF5cyIpKTs=