Morgan Frost, Jamie Drysdale, Ryan Poehling and Garnet Hathaway each had a goal and an assist for Philadelphia (18-20-5), which had lost its previous four games (0-3-1). Travis Konecny had four assists, and Owen Tippett and Matvei Michkov also scored.
The victory came two nights after a 4-1 loss to the Dallas Stars that the Flyers felt was one of their worst of the season.
"I just thought we played a hard game," coach John Tortorella said. "As I said after the last game, we haven't played many bad games. I just wanted us to answer the right way. We got off to a start, score the first goal. We talked about checking better; we checked better. And I thought played a good hockey game."
The Flyers also drew emotion from the fans' reaction to the presence of Ducks forward Cutter Gauthier, who Philadelphia had selected with the No. 5 pick of the 2022 NHL Draft and then traded to Anaheim on Jan. 8, 2024, for Drysdale, after Gauthier had told Flyers management he would not sign with them.
"Helped the crowd was really into it tonight," Konecny said. "It was awesome, great atmosphere. We just played hard. We've been playing hard and not getting results. So, it was good to get one tonight."
John Gibson made 24 saves for Anaheim (17-20-5), which has lost four of its past five (1-3-1), including a 6-2 loss to the St. Louis Blues on Thursday.
"That's probably the loudest we've had a team game so far throughout this season," Gauthier said. "They were super loud but I don't think that crept into anyone's habits or what they do on the ice. We had some poor habits coming into tonight's game with the St. Louis game. So the quicker we can get back to that, to our game plan, the better it will be for us."
Frost gave the Flyers a 1-0 lead at 6:48 of the first period when he skated through the slot and one-timed Konecny's pass past Gibson.
Drysdale made it 2-0 with a power-play goal at 18:11. The defenseman took a pass from Konecny and slipped a shot from the top of the crease under Gibson's pads for his first goal in 27 games, dating to Oct. 17.
"It felt really good," Drysdale said. "It's obviously been a while, a struggle. Felt real good to get that one but more importantly get the win."