$birthdate = '1990-01-01';
$age = date_diff(date_create($birthdate), date_create('today'))->y;
echo $age;