<?php
# Orientado a objetos
$from = new DateTime('19910906');
$to = new DateTime('today');
echo 'Idade1 ' . $from->diff($to)->y . " anos.";
# Procedural
PD9waHAKCiMgT3JpZW50YWRvIGEgb2JqZXRvcwokZnJvbSA9IG5ldyBEYXRlVGltZSgnMTk5MTA5MDYnKTsKJHRvICAgPSBuZXcgRGF0ZVRpbWUoJ3RvZGF5Jyk7CmVjaG8gJ0lkYWRlMSAnIC4gJGZyb20tPmRpZmYoJHRvKS0+eSAuICIgYW5vcy4iOwoKIyBQcm9jZWR1cmFsCmVjaG8gJ0lkYWRlMiAnIC4gZGF0ZV9kaWZmKGRhdGVfY3JlYXRlKCcxOTk4MTIwNScpLCBkYXRlX2NyZWF0ZSgndG9kYXknKSktPnkgLiAiIGFub3MuIjs=