ANAHEIM -- Corey Perry scored 6:57 into the second overtime to give the Anaheim Ducks a 4-3 win against the Edmonton Oilers in Game 5 of the Western Conference Second Round at Honda Center on Friday.
Anaheim scored three times in the final 3:16 of the third period to make it 3-3. The Ducks are the first team in NHL history to tie a Stanley Cup Playoff game with three straight goals with that little time remaining.
"It's something you can't explain," Perry said. "You go out and it happens."
[WATCH: All Ducks vs. Oilers highlights | RELATED: Complete Anaheim vs. Edmonton series coverage]
Anaheim leads the best-of-7 series 3-2 after the first win by a home team. Game 6 is at Edmonton on Sunday.
Edmonton led 3-0 before Ryan Getzlaf, Cam Fowler and Rickard Rakell scored in a 3:01 span with goalie John Gibson pulled for an extra attacker.
"We knew once we got one, we'd get two," Getzlaf said. "We knew we would scratch and claw."
Video: EDM@ANA, Gm5: McDavid bats in PPG out of mid-air
Getzlaf made it 3-1 with 3:16 remaining, Fowler scored to get the Ducks within 3-2 with 2:41 left, and Rakell tied it 3-3 with 15 seconds remaining when he backhanded a loose puck past goalie Cam Talbot.
Rakell's goal was upheld after the NHL Situation Room and the referee determined that the actions of Edmonton defenseman Darnell Nurse caused Anaheim forward Ryan Kesler to contact Talbot before the puck crossed the goal line.
"It wasn't a good birthday to start, but it was a good ending," said Rakell, who turned 24 Friday.
Connor McDavid had a goal and an assist, Leon Draisaitl and Drake Caggiula scored, and Talbot made 60 saves, an Edmonton record.
"We have to come back with a game that's that much better," Oilers coach Todd McLellan said. "We can do that. We believed we can play with this team from Day One."
Draisaitl put the Oilers up 1-0 when he scored 15 seconds into the second period. McDavid made it 2-0 when he batted the puck out of midair to score on a 5-on-3 power play at 2:55. Then, on a 3-on-1, McDavid got an assist on Caggiula's goal that made it 3-0 at 12:28 for his first multipoint game in the playoffs after he had 30 during the regular season.
Perry and Jakob Silfverberg each had two assists, and Gibson made 35 saves.
Nick Ritchie beat Talbot with a deflection at 10:45 of the second period, but referee Francois St-Laurent ruled he did so with a high stick and waved off the apparent goal. Video review confirmed Ritchie's stick was above the crossbar when it contacted the puck.
Edmonton defenseman Andrej Sekera left the game at 5:51 of the first period after he was injured on a hit by Getzlaf in the neutral zone.
Getzlaf missed the net on a penalty shot at 9:12 of the first after Milan Lucic was called for holding him on a breakaway.
Goal of the game
Getzlaf had the puck in the corner when he spotted Perry cutting through the middle. Getzlaf passed to him, and Perry held the puck as he skated in on Talbot. Perry cut toward the right post and waited for Talbot to extend his left pad before sliding the puck through the small opening for the game-winner.
Video: EDM@ANA, Gm5: Perry ends thriller with goal in 2OT
Save of the game
The Oilers sprung loose on a 2-on-1 in the first overtime, but Gibson made the save on Caggiula at 11:18.
Video: EDM@ANA, Gm5: Gibson fights off Caggiula's shot in OT
Highlight of the game
With about 20 seconds remaining in the third period and Anaheim trailing by a goal, Fowler reached out with his stick to keep the puck in the Edmonton zone, then turned and flung it toward the net. Several Oilers and Ducks converged on the crease and the puck remained loose. It caromed to Rakell, who shot it through the pile of bodies into the net.
Video: EDM@ANA, Gm5: Rakell ties game with 15 seconds left
Unsung performances of the game
Edmonton played most of the game with five defensemen and went stretches with four, with Sekera, Matt Benning and Kris Russell all leaving at times. Russell had eight blocked shots, an assist and a made game-saving play by clearing the puck from the crease when it got behind Talbot during the first overtime. Defenseman Adam Larsson played 44:58 and had an assist and four blocked shots.
They said it
"We're still in this series going home. We've got to find a way to come out with our best game, give ourselves a chance to win." -- Oilers forward Milan Lucic
"You cannot quit believing when you're in any situation." -- Ducks coach Randy Carlyle
Need to know
Getzlaf took the second playoff penalty shot in Ducks history. Perry took the other on May 16, 2014 in Game 7 of the second round against the Los Angeles Kings and missed. ... The Ducks set their record with 64 shots; they took 63 in Game 5 of a second-round win against the Vancouver Canucks on May 3, 2007. ... Getzlaf has 15 points (eight goals, seven assists) in nine playoff games.
Game 6 of Western Conference Second Round at Rogers Place on Sunday (7 p.m. ET; NBCSN, SN, TVA Sports)