April 9, 2022 | 3: 49pm

Matthew Perry is lovin’ it.

The “Friends” star was snapped visiting a McDonald’s in Pacific Palisades with a pal and then later arriving at a friend’s house.

Last month, Perry sent a sweet message of support to his “The Whole Ten Yards” co-star Bruce Willis amid the latter’s recent aphasia diagnosis.

“Dear Bruce Willis, I’m so sorry to hear what you are going through, but you’re still the coolest man I’ve met in my entire life,” Perry, 52, tweeted. “You will remain in my prayers for a long long time.”

The actor, 52, is currently working on his memoir, which will no doubt talk about his years battling drug addiction.

Perry first went into rehab in 1997 and then again in 2001. He even confessed to not recalling filming multiple seasons of “Friends” due to his drug use.

Matthew Perry.
Perry was with an unidentified brunette.
SPOT / BACKGRID

“I think the answer is, I don’t remember three years of it,” he told BBC Radio 2 in 2016. “So none of those … Somewhere between Season 3 and 6 … I was a little out of it.”

He has said that a jet ski accident and subsequent prescription to painkillers left him addicted.

Matthew Perry and unidentified female friend.
Perry’s pal held the bag of goodies from McDonald’s.
SPOT / BACKGRID

Last year the “17 Again” star sparked concern among fans when he slurred his speech during a “Friends” reunion promo.

However, a source said that the actor had just had “an emergency tooth procedure” the day of the shoot.

“He had been in pain, from what we understand, which caused the slurred speech,” they continued. “Obviously no one wants to film after a procedure, but it happened.”

Mathew Perry.
Perry is working on his memoir.
SPOT / BACKGRID

Perry has also had a tumultuous time in his personal life.

In November 2020 he got engaged to 29-year-old literary agent Molly Hurwitz, calling her the “greatest woman on the face of the planet.”

Matthew Perry.
Perry appeared on the “Friends” reunion show last year.
SPOT / BACKGRID

But just seven months later the couple split with Perry releasing a statement that read: “Sometimes things just don’t work out and this is one of them. I wish Molly the best.”

He was also called out a year later when a 19-year-old girl released private FaceTime chats she had had with the actor after matching with him on Raya.