$day = 5; $month = 6; $year = 1990; $age = time() - mktime(0 , 0 , 0 , $day , $month , $year); echo number_format($age / 31536000 , 1);