DENVER (AP) -- Ryan O'Reilly scored at 4:40 of overtime and the Colorado Avalanche rallied to beat the Philadelphia Flyers 4-3 to end a two-game skid.

Colorado Avalanche center Ryan O'Reilly, front, scores the winning-goal with a shot that goes by Philadelphia Flyers goalie Steve Mason, back, in the overtime period
Colorado Avalanche center Ryan O'Reilly, front, scores the winning-goal with a shot that goes by Philadelphia Flyers goalie Steve Mason, back, in the overtime period (AP Photo/David Zalubowski)
loading...

O'Reilly got a pass from defenseman Tyson Barrie and beat goalie Steve Mason with a shot just under the crossbar. It was O'Reilly's seventh of the season.

Semyon Varlamov had 26 saves and Jarome Iginla also scored for the Avalanche.

Claude Giroux, Vincent Lecavalier and Jakub Voracek scored for Philadelphia. Mason finished with 29 saves for the Flyers, who have lost three in a row.

Colorado had a 2-1 lead after two periods but Lecavalier tied it with his sixth goal 2:52 into the third.

Giroux gave the Flyers a 3-2 lead when he skated through four Avalanche skaters and beat Varlamov with a power-play goal at 10 minutes of the third. It was his 13th of the season.

Colorado got a power play 90 seconds later and Iginla tied it with his ninth goal at 12:48.

The Flyers got their first power-play goal in seven games in the first period. They worked the puck around the front of the net to Voracek, who beat Varlamov with a high shot at 10:14. It was his 15th goal of the season and ended his first multigame points drought of the season.

The lead held until Nate Guenin scored at 10:47 of the second period. His shot from the point got through traffic and past Mason for his first goal of the season. It also ended Colorado's scoreless streak that had reached 131:07. The Avalanche hadn't scored since early in the first period against Chicago on Saturday.

Colorado's next goal came a little quicker. Borna Rendulic, who was recalled from Lake Erie earlier in the day, beat Mason with a shot from the top of the right circle at 14:17 of the second.

It was Rendulic's first NHL goal and it came in his fourth NHL game.

NOTES: Philadelphia D Michael Del Zotto was in the lineup after being a healthy scratch the previous nine games. ... Avalanche D Zach Redmond was a healthy scratch after playing in 22 straight games. ... Flyers C Zac Rinaldo missed his fifth straight game with an upper body injury.

(© 2015 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed)

More From New Jersey 101.5 FM