BOSTON — Claude Giroux’s second goal, coming on a power play 2:09 into overtime, lifted the Philadelphia Flyers to a 5-4 win over the Boston Bruins on Wednesday night.

The Flyers overcame a two-goal deficit in the third before Giroux one-timed a shot past Tuukka Rask from the left circle for the winner as Ryan Spooner was in the penalty box for hooking.

Pierre-Edouard Bellemare and Sam Gagner also had goals for the Flyers, who won after dropping a 2-1 decision at home against Dallas a night earlier.

Chris Kelly, Jimmy Hayes, Brett Connolly and Patrice Bergeron scored for the Bruins, who have lost their first four games at home this season.

Philadelphia’s starting goaltender Michal Neuvirth left the game after the first period. No injury was announced, but he wasn’t on the bench the rest of the game.

In relief, Steve Mason stopped 16 shots. Rask made 32 saves.

Wayne Simmonds beat Rask with a blistering wrist shot from the left circle, tying it with 9:36 to play. Giroux had sliced it to 4-3 at 7:48.

Boston moved ahead 3-2 when Loui Eriksson’s shot caromed into the net off Kelly’s skate. It came despite the Bruins skating shorthanded after Zac Rinaldo was given a five-minute major for charging and a game misconduct on a hit to Flyers center Sean Couturier along the boards at the end of the first.

The Flyers were held without a shot on goal during their five-minute advantage.

Hayes beat Mason between the pads on a tough-angle shot from the bottom of the right circle, making it 4-2.

Bellemare’s hustle goal made it 1-0 midway into the first when he backhanded in his own rebound, but Connolly’s goal tied it when he slipped the rebound of Bergeron’s shot into the net from the edge of the crease.

Less than two minutes later, Gagner fired a wrister over Rask’s right shoulder to make it 2-1.

Bergeron scored a power-play goal when he batted a rebound out of the air from the edge of the crease at 17:24.