PHILADELPHIA -- Andreas Johnsson scored the deciding goal in the 11th round of the shootout for the Toronto Maple Leafs after Frederik Andersen denied 10 Philadelphia Flyers in a 4-3 win at Wells Fargo Center on Saturday.
Kasperi Kapanen and Jason Spezza each had a goal and an assist, Mitchell Marner scored the tying goal, and Andersen made 37 saves for Toronto (7-5-3), which won for the first time in three games.
It was the longest shootout in Maple Leafs history.
[WATCH: All Maple Leafs vs. Flyers highlights]
"We've got a pretty good list, and then as time went on, you're starting to wonder where you're going, for sure," Toronto coach Mike Babcock said of the shootout. "Obviously, some guys do a lot of real good things and in shootouts weren't as good. Other guys came through for us. It was good for [Johnsson] and good for our team."
Ivan Provorov and Claude Giroux each had a goal and an assist, and Travis Sanheim scored for the Flyers (6-5-2), who were coming off a 4-3 shootout win at the New Jersey Devils on Friday. Brian Elliott made 23 saves through overtime and denied nine Maple Leafs in the shootout.
"Overall, we played real well in the second and third," Philadelphia coach Alain Vigneault said. "We had a power play in overtime where we had a couple of good looks, and 11 shooters later we came up a point short, a goal short."
Marner tied the game 3-3 at 5:03 of the third period when he scored at 4-on-4. He jumped on a Flyers turnover at center ice, skated around Matt Niskanen on the right side before going around the net and tucking the puck inside the left post.
Video: TOR@PHI: Marner steals puck, nets wraparound
Sanheim put the Flyers ahead 3-2 31 seconds into the third. His shot from the right side bounced off traffic in front of the net, and as Andersen dove to try to cover the puck, Sanheim skated out from behind the Maple Leafs net and scored on a backhand shot.
Sanheim fell at the blue line while defending Kapanen 1-on-1 in the first period, allowing the Toronto forward to skate in alone on Elliott and score for a 1-0 lead at 5:55. It was the third straight game when Sanheim losing his footing led to a goal against Philadelphia.
"I'm a pretty good skater, so I can't say I've ever had a stretch where three straight games I've fallen and it's ended up in the back of my net," he said. "Hopefully, I can figure that out here pretty shortly. It's tough to see those."
Video: TOR@PHI: Sanheim lifts backhander over Andersen
Spezza tied it 2-2 when he reached through a crowd in the crease and poked the puck over the goal line with 2:55 remaining in the second.
It was Spezza's first goal in nine games with the Maple Leafs, and it came nearly 17 years after he scored his first NHL goal, for the Ottawa Senators in Philadelphia on Oct. 29, 2002.
"The first one felt pretty good, you remember that one forever," he said. "This one, maybe not as memorable. But it was a big goal at the time."
Spezza scored in the bottom of the eighth round of the shootout to extend it after Travis Konecny scored for the Flyers in the top half.
Giroux scored a power-play goal at 3:12 of the second to give Philadelphia a 2-1 lead.
After Kapanen scored, the Flyers tied it 1-1 with 4:58 remaining in the first period on Provorov's power-play goal that went in off two Maple Leafs.
Video: TOR@PHI: Kapanen roofs wrister over Elliott's glove
They said it
"We talk every day about how he keeps our team grounded. He keeps us in games a lot of times. It was a huge shootout performance from him, and this all happens because of his saves." -- Maple Leafs forward Mitchell Marner on goalie Frederik Andersen
"I think we've got enough guys in here that have been around the block that know that know no matter how it ended that it's a big point. Those add up at the end of the year. We'll regroup here, get a little rest, and come back next game here." -- Flyers goalie Brian Elliott
Need to know
The Maple Leafs lost 5-4 to the Winnipeg Jets in a 10-round shootout March 16, 2013. ... The Flyers' longest shootout lasted 13 rounds (5-4 loss to New York Rangers, Oct. 7, 2006). ... Marner has five points (one goal, four assists) during a four-game point streak.
Maple Leafs: Host the Los Angeles Kings on Tuesday (7:30 p.m. ET; TSN4, FS-W, NHL.TV)
Flyers: Host the Carolina Hurricanes on Tuesday (7 p.m. ET; ESPN+, NBCSP, FS-CR, NHL.TV)
Video: Johnsson's SO winner lifts Maple Leafs past Flyers