Lionel Messi and KylianMbappe both scored two goals as Paris St-Germain thrashed Maccabi Haifa.
An own goal was scored by Shon Goldberg.
Messi is the first player to score 80 goals in the group phase of the European club competition.
In Group H, Paris Saint-Germain have 11 points from five games, the same as Benfica, who also have 11 points.
It was Messi's ninth hat-trick in the league.
It was the first time in four years that the Bianconeri missed out on the knockout stage.
Massimiliano Allegri apologized but refused to accept that not getting out of the group was a failure.
There is a possibility that this could be the case.
Two goals in three minutes by Arkadiusz Milik and Weston McKennie set the stage for an exciting finish.
They will join Paris Saint-Germain in the last 16 after securing a victory.
If they finish third in Group H, they will get a spot in the knockout stages.
It is another blow for the Bianconeri, who are 10 points adrift of the leaders in the league.
"I think we were too soft in our defence in the first half, more than the wrong approach," said Allegri.
We need to focus on the league and Paris because we need to book a place in the Europa League.
It's not useful to talk about the mistakes we made. This is not a failure. There are losses in football.
We are sorry and upset. It isn't a physical matter because the team finished well. We need to work.