<?php
$data1 = new DateTime("2017-08-24");
$data2 = new DateTime("2017-05-09");
$diff = $data1->diff($data2);
echo $diff->format("Diferença de %a dias corridos."), PHP_EOL;
PD9waHAKCiRkYXRhMSA9IG5ldyBEYXRlVGltZSgiMjAxNy0wOC0yNCIpOwokZGF0YTIgPSBuZXcgRGF0ZVRpbWUoIjIwMTctMDUtMDkiKTsKCiRkaWZmID0gJGRhdGExLT5kaWZmKCRkYXRhMik7CgplY2hvICRkaWZmLT5mb3JtYXQoIkRpZmVyZW7Dp2EgZGUgJWEgZGlhcyBjb3JyaWRvcy4iKSwgUEhQX0VPTDs=