The Flyers probably didn’t anticipate going to a shootout Friday when they were up 3-0 on the Islanders.

But that’s where they found themselves. And that’s where they found another win.

Rick Tocchet’s club hung on to beat New York, 4-3, in the skills competition at UBS Arena.

The Flyers improved to 5-0 in the shootout. They lead the NHL with 11 shootout wins over the last two seasons.

Trevor Zegras and Travis Konecny provided the Flyers’ tallies after regulation. Zegras is a blistering 17 for 25 lifetime in the shootout.

Samuel Ersson picked up his 12th career shootout win in 15 opportunities.

Zegras, Tyson Foerster and Sean Couturier staked the Flyers to a 3-0 lead, which was erased before second intermission.

But the Flyers (13-7-3) were able to survive some dicey moments and get to overtime. They’ve earned at least a point in nine of their last 11 games (7-2-2). They’re 2-1-0 on this four-game road trip, which spans six days.

The Flyers are 2-0-0 in their four-game regular-season series against the Islanders (13-9-3). They beat New York, 4-3, in a shootout a little over a month ago at Xfinity Mobile Arena.

• Ersson really battled, recording 28 saves on 31 shots. Nine of his saves came in the third period and three in OT.

The Flyers didn’t manage the puck well after jumping out to that 3-0 advantage. They also had to kill off a Matvei Michkov high-sticking penalty that put the Islanders on a four-minute power play in the third period of a 3-3 game.

Sean Couturier and Rick Tocchet spoke on the Flyers’ four-minute penalty kill late in their shootout win over the Islanders.

After a turnover by Emil Andrae led to New York’s first goal, Tocchet could be seen on the NBC Sports Philadelphia broadcast saying “f—ing freebies.” Andrae wasn’t aware of a banged-up Kyle Palmieri behind the play. The Islanders’ veteran forward stripped the Flyers’ young defenseman and started the sequence for Emil Heineman’s goal.

That gave New York life as the Flyers’ lead was trimmed to 3-1 in the second period. The Islanders built on the momentum and had things tied up heading into the third period.

New York backup David Rittich stopped 18 of the Flyers’ 21 shots.

In five of their previous eight games, the Flyers had fallen behind 2-0. But not in this one.

The Flyers raced out to a 2-0 lead just 8:52 minutes into the action. Foerster and Couturier scored just 22 seconds apart, which was eerily similar to how the Flyers closed out their 4-2 win Wednesday night over the Panthers.

Zegras padded the Flyers’ lead to 3-0 on the power play just 1:55 minutes into the middle stanza.

Tyson Foerster and Sean Couturier scored 22 seconds apart in the first period to give the Flyers an early 2-0 lead over the Islanders.

• After holding Matthew Schaefer scoreless in the first meeting, the Flyers couldn’t slow down the 2025 top overall pick this time.

The 18-year-old defenseman skated into the circle and blasted one past Ersson to make it 3-2. Garnet Hathaway was unable to clear the puck, which kept the Islanders in the offensive zone.

Schaefer then picked up a secondary assist on Anders Lee’s power play goal. That tied the game at 3-3 with 47 seconds left in the second period.

• Foerster has been on a roll going back to March 22 of last season.

Over that span, he has 18 goals, seven assists and a plus-10 rating in 31 games.

The 23-year-old winger has shown his upside as a goal scorer.

• The Flyers are right back at it Saturday when they visit the Devils (7 p.m. ET/NBCSP).

Since last season, the Flyers have gone just 1-12-2 in the second game of back-to-back sets.