Benni McCarthy's 85th-minute goal sent defending champion Porto into the second round of the European Champions League with a 2-1 victory over Chelsea on Tuesday and ended the unbeaten streak of former coach Jose Mourinho.
Mourinho, who guided Porto to last year's title before moving to England, enjoyed an early lead with Damien Duff's 33rd-minute goal, but watched as Ribas Diego equalized in the 60th and McCarthy won it with five minutes remaining.
The victory enabled Porto to overtake Paris Saint-Germain for second place Group H and a spot in the final 16. Chelsea, which already was assured of advancing, finished atop the group with 13 points despite Mourinho's first loss in 16 Champions League games with Porto and Chelsea.
"I always want to win," Mourinho said.
"Whether it's against Porto, Portuguese teams or Chinese teams, I want to win all the time, I'm professional.
"Nobody likes to lose and we played enough to get a different result tonight. I think we had the best chances to score a second goal even before they did get their second. But they scored and they won."
PSG lost 3-1 at home to last-placed CSKA Moscow, who had three goals from Sergei Semak. CSKA was on course to advance until McCarthy's late strike, while the French club dropped from second to last and missed out on the consolation of a UEFA Cup berth awarded to the third-place finisher.
Arsenal jumped out to a 3-0 lead midway through the first half and crushed Rosenborg 5-1 at Highbury to finish atop of Group E, and German champion Werder Bremen won 2-0 at Valencia thanks to two strikes by substitute Nelson Valdez to also reach the second round from Group G.
Nine clubs already had secured places in the last 16 -- Italy's Juventus, AC Milan and Inter Milan, England's Chelsea and Manchester United, Germany's Bayern Munich, French champion Lyon, Dutch club PSV Eindhoven and Spanish league leader Barcelona.
After four consecutive draws, Jose Antonio Reyes put Arsenal ahead in the third minute and the Gunners raced to a 4-1 halftime lead.
Thierry Henry and Francesc Fabregas added goals five minutes apart to extend the lead to 3-0 by the 29th, and after a fumbled by goalkeeper Manuel Almunia led to Norway's only goal by Erik Hoftun, Robert Pires converted a penalty to restore the lead four minutes before the break. Robin van Persie added the finale with seven minutes to go.
"When it came back to 3-1 there was a little moment of worry," Wenger said. "But we always controlled the game and looked dangerous when we won the ball back.''
Greek champion Panathinaikos scored a 4-1 victory over already qualified PSV Eindhoven but failed to make it because of Arsenal's triumph.
Team captain Markus Munch scored twice in Athens and, although United States international DaMarcus Beasley leveled for the Dutch team, Panathinaikos ran away a comfortable winner. The loss meant PSV slipped to second.
After Bremen's 2-0 victory meant the German champion joined Bayern Munich in the last 16, Valencia had forward Miguel Angel Angulo sent off as tempers flared just before the final whistle.
Coach Claudio Ranieri was unhappy with the performance of Swedish referee Anders Frisk.
"The referee favored them [Bremen] and this makes you nervous. I understand how they cut the referee's head in Rome," Ranieri said in reference to a Roma fan hurling an object that hit Frisk on the head during an abandoned Champions League game against Dynamo Kiev in September.