Código PHP:
Ver original-   
- $hoy = new DateTime(); 
- $vencimiento = new DateTime($result_ar['vencimiento']); 
- $total = $hoy->diff($vencimiento)->format('%a'); 
-   
- echo $hoy->format('d/m/Y').'<br>'; 
- echo $vencimiento->format('d/m/Y').'<br>'; 
- echo $total.'<br>';