PHILADELPHIA — The crowd was already jacked up to shower ex-Flyer Cutter Gauthier with boos and get the Flyers fired up.

But then Anaheim’s Ross Johnston laid a blind-side hit on Flyers defenseman Jamie Drysdale early in the second period, and the anger index at Xfinity Mobile Arena skyrocketed.

Credit the Flyers with not getting too caught up in exacting revenge.

They stuck to business and used a pair of Trevor Zegras goals, plus another strong Dan Vladar performance to send the Ducks packing Tuesday night, 5-2.

Zegras, who joined the Flyers last summer via trade from the Ducks, suggested it was fun to stick it to his old team.

“Yeah, it was cool,” he said. “I’ve been thinking about this game for a long time. It was one that meant a lot to me.”

The emotional sellout crowd added to the overall vibe. There were plenty of cheers for Zegras and R-rated chances for Gauthier, a former Flyer first-round pick who refused to sign here, dealt in Jan. 2024 for Drysdale.

“It was awesome,” Zegras said. “They’re great. A tough back-to-back for them, but they’ve got a lot of great players.”

Zegras has never had a hat trick and he admitted he was thinking about it, given the setting.

“Playing your old team, getting that third one would have been pretty cool,” Zegras said. “But we got the win.”

Defenseman Cam York, who has been friends with Zegras since being teammates in the U.S. National Team Development Program in 2017-18, understood what it meant to him.

“He knew it was a big game,” York said. “For everybody, but especially for him. It’s super-nice to get the win there. For him to get two goals is pretty special.”

Zegras had already set a career-high for goals, now at 17. The second half of the season should put that old mark far back in the rearview mirror.

Coach Rick Tocchet was even-keeled after the game. He seldom gets too high or too low with his post-game comments.

“Two great shots,” Tocchet said of Zegras.

Was this almost a playoff-like atmosphere?

“I thought that was an outstanding crowd,” Tocchet said. “That was a loud building. They were awesome. I think they really gave our team some juice. Even when Anaheim scored the first goal, they (the crowd) didn’t let up. They really helped us tonight.”

Both Zegras goals came on the power play in the first period, for the NHL’s 31st-ranked power play.

Zegras is developing a knack for scoring from the lower right circle when the Flyers are on the man advantage. The sharpshooter sets up shop on his off wing, then waits for a point man to draw the checker away.

The first goal came at 10:22 to tie the score after Gauthier connected on a Ducks power play. Zegras beat Lukas Dostal short side.

It was more of the same at 14:23. The Ducks couldn’t shift over in time and Zegras hit the back of the net again.

In the second period, York’s point shot found its way through a maze of bodies at 1:15. Then his partner, Travis Sanheim scored shortly after Noah Cates won a faceoff, connecting at 14:40.

Anaheim got one back on a power play early in the third, but that’s as close as the Ducks would get.

Zegras linemate Christian Dvorak did not get caught offguard by Zegras’ performance. He sensed it would be that kind of night.

“You knew he was going to be up for this game,” Dvorak said. “We definitely wanted to get him one tonight. It (the first goal) was a big boost. The crowd was into it all game. That certainly helped to get on the board early and tie it up. The fans were just electric all night.”

• • •

Drysdale was injured in the collision with Johnston and lay motionless on the ice for several minutes. A stretcher was rolled out. But Drysdale, who did not appear to get struck in the head by Johnston’s shoulder, eventually stood up and made it to the locker room under his own power.

Johnston received a five-minute interference and a game misconduct. Drysdale was done for the night.

Bobby Brink suffered an upper-body injury in the second period and did not return to action. Tocchet had no update post-game.

• • •

NOTES >> Matvei Michkov was scratched due to a foot injury suffered Saturday in Edmonton. X-rays were negative. Nikita Grebenkin returned to the lineup in his place, scoring an empty-netter. … Toronto is up next for the Flyers Thursday night. Coach Craig Berube, the former Flyers coach, brings in a Leafs team that is struggling. Toronto entered Tuesday seventh in the Atlantic Division with a road record of 5-10-2. … It was Ed Snider “A Flyer Forever” Legacy Night at Xfinity Mobile Arena. The founder of the Flyers would have turned 93 Tuesday. There were video clips and still photographs of Snider shown throughout the game. Snider died in April 2016. … York entered ranked fifth in plus-minus among NHL defensemen since Dec. 20 with a plus-8.