Benfica got the better of a makeshift Paris Saint-Germain side with a 2-1 comeback win on Tuesday thanks to goals from South Americans Lima and Nicolás Gaitán but it wasn't enough to secure a passage to the knockout rounds of the Champions League.

Benfica needed to better Olympiakos's result in Athens but the Greek side beat Anderlecht 3-1 to claim the runners-up spot in Group C and consign third-placed Benfica to the Europa League.

PSG go through as group winners with 13 points, three ahead of both Olympiakos and Benfica, who lose out on their inferior head-to-head record against their Greek rivals.

The visitors' Uruguayan striker Edinson Cavani slotted home the opener eight minutes before half-time at the Estádio da Luz.

Benfica levelled with a penalty from Lima after PSG's Champions League debutant Kalifa Traoré brought down Silvio in the box, and Gaitán rewarded Benfica for a stronger second-half display with the winner after 58 minutes.

Already assured of a place in the last 16, PSG fielded a second-string lineup, resting top marksman Zlatan Ibrahimovic and centre backs Thiago Silva and Alex.

Benfica punished the French champions' vulnerability in defence, none more so than when Gaitán fired home the winner from close-range after centre-back Zoumana Camara failed to clear.

"It was a dream of our president and of all Benfica fans to reach the [Champions League] final in our stadium, and our objective was to go through the groups but sadly the win was not enough. Still, it is one that the fans deserved," Lima said.