By Michael Goldstein

Jakub Voracek’s breakaway goal at 3:47 of overtime gave the Flyers a 5-4 win over the New York Rangers.

Claude Giroux, Joel Farabee and Ivan Provorov each had a goal and an assist, and James van Riemsdyk also scored for the Flyers, who won for the third time in eight games. Voracek also had two assists.

“We found a way to get it done,” Flyers coach Alain Vigneault said. “Every win is not easy to get. It’s a tough league and we found a way to get two points.”

In the extra period, Voracek stole the puck on the left side from a flat-footed Artemi Panarin after goalie Keith Kinkaid’s soft pass up the ice. Voracek skated in alone and beat Kinkaid with a forehand deke for his fourth.

Carter Hart finished with 20 saves, getting his first win since a shutout against Buffalo on Feb. 28. He was 0-3-0 in four appearances since then.

“There are a lot of things I can work on and I know I can be better,” Hart said. “It felt good to get a win and it’s something to build off.”

Vigneault was pleased with his goalie’s performance.

“He made big saves for us,” the coach said. “He made some saves at the right time and hopefully it’s a step for him and a step in the right direction for our team.”

Panarin had a goal and two assists in the Rangers’ three-goal second period, and Colin Blackwell, Julien Gauthier and Kevin Rooney also scored. Kinkaid, starting for the second straight game, stopped 25 shots.

“You always want two points under the circumstances, especially after the slow start we had,” Rangers coach David Quinn said. “I thought a little too sloppy, too many odd-man rushes, the breakaways obviously have to stop, better reads on our gaps, pinching.”

The teams meet again at Madison Square Garden on Wednesday night.

Rooney put the Rangers ahead 4-3, getting a pass from Brendan Lemieux and quickly putting the puck past Hart from the right circle for his fifth at 2:56 of the third.

Giroux tied it again on a power play as he came around the net and tapped in a pass from Voracek from the left doorstep at 5:33.

“One of the crazier things I’ve seen,” Farabee said. “Jake literally called that play exactly right before it happened. I just watched it from the point. They are so good and are such good leaders.”

Scott Laughton had a chance to put the Flyers ahead on a breakaway with a little more than six minutes left, but Kinkaid made a sliding pad save on his backhand try. Kinkaid stopped a breakaway by Voracek about 2 1/2 minutes later.

Kevin Hayes appeared to give the Flyers the lead with their third power-play goal of the night with about three minutes remaining, but it was overturned after the Rangers challenged successfully for offside.

Phillly which came in 5 for 19 on the power play over its last six games, finished 2 for 5 against the Rangers. New York was 20 for 21 on the penalty kill over its previous 10 games.

Trailing 2-0 after being outshot 11-6 in the first period, the Rangers scored three times in a 7:04 stretch of the second to take the lead.

Panarin fired a one-timer from the left circle, falling down on the follow through, off a pass from rookie defenseman Tarmo Reunanen in his NHL debut at 8:12. It was Panarin’s sixth.

Panarin, in his second game back after missing nine during his leave of absence, then set up Blackwell for the tying goal with 9:08 left.

Gauthier put the Rangers ahead when he skated up the right side, cut across in front of Hart and backhanded the puck past the goalie for his second with 4:44 remaining in the period.

Farabee tied it with a power-play goal with 1:24 left on a one-timer from the left circle off a pass from behind the net by Giroux. It was Farabee’s 12th.

The Flyers took the lead with a pair of goals less than 80 seconds apart early in the first period.

Farabee sent a cross-ice pass to van Riemsdyk streaking toward the net and he quickly beat Kinkaid for his team-leading 13th at 3:47. It was his third goal in the last four games.

Provorov made it 2-0 as he beat Kinkaid with a long shot from beyond the left circle that got through traffic and clanged in off the right post for his fourth at 5:05.