<?php
$dataInicial = new DateTime();
$dataFinal = new DateTime("2018-07-13");
$diferenca = $dataInicial->diff($dataFinal);
echo sprintf("Faltam %d anos, %d meses, %d dias, %d horas, %d minutos e %s segundos para {$dataFinal->format('d/m/Y')}", $diferenca->y,
$diferenca->m,
$diferenca->d,
$diferenca->h,
$diferenca->m,
$diferenca->s);
PD9waHAKCiRkYXRhSW5pY2lhbCA9IG5ldyBEYXRlVGltZSgpOwokZGF0YUZpbmFsID0gbmV3IERhdGVUaW1lKCIyMDE4LTA3LTEzIik7CgokZGlmZXJlbmNhID0gJGRhdGFJbmljaWFsLT5kaWZmKCRkYXRhRmluYWwpOwoKZWNobyBzcHJpbnRmKCJGYWx0YW0gJWQgYW5vcywgJWQgbWVzZXMsICVkIGRpYXMsICVkIGhvcmFzLCAlZCBtaW51dG9zIGUgJXMgc2VndW5kb3MgcGFyYSB7JGRhdGFGaW5hbC0+Zm9ybWF0KCdkL20vWScpfSIsCiAgICAkZGlmZXJlbmNhLT55LAogICAgJGRpZmVyZW5jYS0+bSwKICAgICRkaWZlcmVuY2EtPmQsCiAgICAkZGlmZXJlbmNhLT5oLAogICAgJGRpZmVyZW5jYS0+bSwKICAgICRkaWZlcmVuY2EtPnMpOw==