<?php
$data1 = new DateTime('19910906');
$data2 = new DateTime('19981205');
$idadeData1 = $data1->diff(new DateTime());
$idadeData2 = $data2->diff(new DateTime());
echo "Idade1: " . $idadeData1->y . " anos.";
echo "Idade2: " . $idadeData2->y . " anos.";
PD9waHAKJGRhdGExID0gbmV3IERhdGVUaW1lKCcxOTkxMDkwNicpOwokZGF0YTIgPSBuZXcgRGF0ZVRpbWUoJzE5OTgxMjA1Jyk7CgokaWRhZGVEYXRhMSA9ICRkYXRhMS0+ZGlmZihuZXcgRGF0ZVRpbWUoKSk7CiRpZGFkZURhdGEyID0gJGRhdGEyLT5kaWZmKG5ldyBEYXRlVGltZSgpKTsKCmVjaG8gIklkYWRlMTogIiAuICRpZGFkZURhdGExLT55IC4gIiBhbm9zLiI7CmVjaG8gIklkYWRlMjogIiAuICRpZGFkZURhdGEyLT55IC4gIiBhbm9zLiI7