Cristiano Ronaldo equalled the all-time international goalscoring record as defending champions Portugal drew with France to qualify for the last 16 of Euro 2020 as one of the best third-placed teams.
Ronaldo scored his 108th and 109th goals, both from the penalty spot, to equal Ali Daei's record set with Iran between 1993 and 2006.
On a frantic evening, the four teams in Group F changed positions frequently, with Portugal looking set to face England in the next round before Germany's dramatic late equaliser bumped them from fourth to second and eliminated Hungary.
READ ALSO:Â Euro 2020: Spain devour Slovakia to qualify with Sweden
Ronaldo gave Portugal the lead after Hugo Lloris followed through on Danilo as he attempted to punch away a cross, before Benzema equalised on the brink of half-time after Nelson Semedo was adjudged to have blocked off Kylian Mbappe's run in the box.
Benzema scored a second immediately after the restart following a stunning pass from Manchester United's Paul Pogba but Ronaldo drew Portugal level when he won and converted a second penalty 13 minutes later.
The draw in Munich meant Portugal finished in third place based on a head-to-head record, while France topped the group, a point ahead of Germany.