Updated

Aleksander Barkov scored the winning goal in a shootout to lift the Florida Panthers to a 5-4 victory over the Philadelphia Flyers on Saturday night.

Reilly Smith scored twice in regulation, and Barkov and Jonathan Huberdeau also scored for the Panthers. Roberto Luongo stopped 22 shots and Jaromir Jagr had two assists as Florida won its second straight after a three-game skid.

Nick Bjugstad also scored in the shootout for the Panthers. Luongo stopped both Sam Gagner and Nick Cousins in the tiebreaker.

Shayne Gostisbehere, Michael Raffl, Ryan White and Cousins scored in regulation for the Flyers. Gagner had two assists and Steve Mason made 25 saves as the Flyers lost for the first time in four games.

Gostisbehere tied the score at 4-all with 1:55 left in regulation when his shot from the point got through traffic and found the back of the net.

Gostisbehere, who became the first player born and raised in South Florida to play in an NHL game with two appearances last season, played for the first time in the Panthers' arena, about 10 minutes from his home in Margate. Gostisbehere leads all rookie defensemen in scoring with 38 points.

Trailing 3-2, the Panthers scored twice in a span of 1:05 to take a 4-3 lead in the third.

The Panthers tied it on Barkov's power-play goal. Barkov shot from the left circle and it got past Mason at 8:24 of the third.

Smith's second goal came after he took a shot from the slot and put the Panthers ahead 4-3 at 9:29.

Raffl put the Flyers ahead 3-2 at 1:28 of the third. Evgeny Medvedev shot from above the left circle and Raffl deflected it by Luongo.

Smith put the Panthers ahead 1-0 in the first as he grabbed a loose puck along the boards in the neutral zone, skated in and fired a shot from above the right circle that went over Mason's glove at 10:22.

The Flyers tied the score at 1 on the goal by Cousins. Gagner passed from behind the net to Cousins in front, who swept the puck past Luongo with 5:24 left in the first.

White gave the Flyers a 2-1 lead on a power-play goal with 6:44 left in the second. Gagner shot from the slot and it deflected off White's stick and into the net.

The Panthers tied it just 18 seconds later as Jagr fought off a defender near the net and dropped the puck to Huberdeau, who one-timed it into the net from inside the right circle. Huberdeau has two goals and three assists in three games since returning from a concussion. Jagr has recorded points in five of his last six games.

NOTES: The Panthers honored the 20th anniversary of its 1996 Stanley Cup Finals team. Former players Scott Mellanby, Brian Skrudland, and John Vanbiesbrouck took part in a ceremonial puck drop. ... Jagr played his 1,615th career game, tying him with Larry Murphy for eighth all-time in games played. ... F Jussi Jokinen has a career-high 10-game points streak. ... G Michal Neuvirth missed his fourth game with a stomach virus.