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.

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.