For a while there, it was a trick the Flyers nearly forgot they had in their back pocket.

Down a pair of goals in the third period to the team that’s nipping at their heels in the standings could have been a problem. Instead, the Flyers stopped taking penalties, scored on a power play and finished the Washington Capitals off 5-4 in overtime for their 11th third-period comeback this season, improving a franchise record.

“We knew if we played like we did in the first period, we were gonna get our butt kicked,” winger Jake Voracek said. “We came out very hard, drove the net, had a lot of shots on net. We knew if we were gonna play like that, we’d win the game.”

As they have made a habit of recently, the Flyers did themselves no favors early on by allowing themselves to get pushed around and get drawn into taking ill-timed penalties.

“That means we’ve got to play the first and second better, right? The first period wasn’t good,” coach Craig Berube said. “I thought that we were good after that. I liked the second period and I liked the third, obviously.”

Shockingly, all of Washington’s goals came at even strength. The Capitals were 0 for 6 on the man advantage.

“Our goaltender is our best (penalty killer) by far,” winger Adam Hall said, “but if we can do a better job of keeping them to low-priority, low-percentage plays on the perimeter and breaking up plays, it’s gonna help us.”

The first period was especially sloppy for the Flyers, who allowed three Washington power plays, couldn’t clear their own zone and couldn’t move the Capitals from Steve Mason’s crease.

Besides a goal from Dmitry Orlov and a tip-in goal for Marcus Johansson, Nicklas Backstrom took a shot that trickled through Mason’s 5-hole and the majority of the puck had crossed the goal line, but Mark Streit swiped it away just before it could fully cross.