Manchester City is on the brink of a humiliating Champions League exit after a stunning loss to Paris Saint-Germain on Wednesday, and Real Madrid is no longer at risk after routing Salzburg.

Man City blew a two-goal lead in a high-stakes clash of super-wealthy underachievers that PSG won 4-2 in Paris yet still could be eliminated alongside the English champion after the final round of games next week.

Only the top 24 in the 36-team standings will advance and Man City, the 2023 champion, will kick off in 25th place but will squeeze into the knockout playoffs round by beating Club Brugge.

“We will do everything there and if we don’t do it we don’t deserve it,” manager Pep Guardiola said of the game in Manchester in one week's time. Brugge needs just a draw to advance.

PSG rose to 22nd place to set up another tense challenge, at 24th-place Stuttgart which likely needs to win.

Early in the second half in Paris, it was Man City looking set to send PSG close to elimination by taking a two-goal lead. Jack Grealish, a halftime substitute, scored in the 50th minute then his pass across the goalmouth was deflected toward Erling Haaland for a second four minutes later.

Within six remarkable minutes PSG was level, from goals by Ousmane Dembélé and Bradley Barcola, and a stunning turnaround was completed in the 78th when Joao Neves headed the decisive goal. Gonçalo Ramos added a fourth in stoppage time.

Madrid advances to knockout phase

After winning a record 15th European title last season, then signing France star Kylian Mbappé in the offseason, it probably should not have been such a drama for Real Madrid to reach the knockout stages in the new Champions League format.

But three losses in six games — to Lille, AC Milan and Liverpool — left Madrid in 22nd place at kickoff Wednesday, before swatting aside Salzburg 5-1 to rise into 16th.

Brazil stars Rodrygo and Vinícius Júnior each scored twice, either side of a goal for Kylian Mbappé, in a mismatch ahead of the teams meeting again in the FIFA Club World Cup, in Philadelphia on June 26.

Arsenal, Inter and Milan secure wins

Arsenal and Inter got expected wins to rise to third and fourth, respectively, though not sure yet to join Liverpool and Barcelona among the top-eight teams advancing direct to the round of 16.

Arsenal beat Dinamo Zagreb 3-0 and Inter won 1-0 at Sparta Prague that lifted both to 16 points, three clear of ninth-place Aston Villa.

AC Milan quietly went about its business rising to sixth place with a 1-0 win against Girona at San Siro, on a powerful strike in the first half by Rafael Leão.

Bayern slumps, risks tough path ahead

Bayern Munich fell to a 3-0 defeat at Feyenoord and dropped to 15th in the mid-table morass of storied clubs — currently including Madrid and Juventus — who risk facing each other in the knockout playoff rounds in February.

The teams that finish Nos. 15-18 in the standings next week will be drawn against each other in the playoffs — for the right to face Liverpool and, likely, Barcelona in the round of 16.

Bayern is fortunate to have one of the easier-seeming final games, at home to Slovan Bratislava, which has lost seven straight.

Celtic secured its place in the knockout rounds by winning 1-0 against last-place Young Boys, the other team to lose seven times.

Leipzig ended its six-game losing run with a 2-1 win over Sporting Lisbon, though the champion of Portugal still is favored to advance. Shakhtar Donetsk stayed in contention — just — with a 2-0 win against Brest, which will be in the knockout phase.

Final round

All 36 teams will be in action at the same time next Wednesday in 18 games kicking off at the same time — 9 p.m. Central European Time (2000 GMT).

The top eight in the final standings get a break until March, waiting for the round of 16. Teams that finish from ninth to 24th enter the knockout playoffs. Those two-leg pairings are drawn Jan. 31 at UEFA headquarters in Nyon, Switzerland.

___

AP soccer: https://apnews.com/hub/soccer

Manchester City's head coach Pep Guardiola, left, and PSG's head coach Luis Enrique embrace each other at the end of a Champions League opening phase soccer match between Paris Saint-Germain and Manchester City at the Parc des Princes in Paris, Wednesday, Jan. 22, 2025. (AP Photo/Thibault Camus)

Credit: AP

icon to expand image

Credit: AP

Salzburg's Hendry Blank, left, and Real Madrid's Kylian Mbappe vie for the ball during the Champions League opening phase soccer match between Real Madrid and FC Salzburg at the Santiago Bernabeu stadium in Madrid, Wednesday, Jan. 22, 2025. (AP Photo/Manu Fernandez)

Credit: AP

icon to expand image

Credit: AP

Real Madrid's Vinicius Junior, right, celebrates with his teammate Kylian Mbappe after scoring his side's 4th goal during the Champions League opening phase soccer match between Real Madrid and FC Salzburg at the Santiago Bernabeu stadium in Madrid, Wednesday, Jan. 22, 2025. (AP Photo/Manu Fernandez)

Credit: AP

icon to expand image

Credit: AP

PSG's Bradley Barcola, right, celebrates with Desire Doue after scoring his side's second goal during a Champions League opening phase soccer match between Paris Saint-Germain and Manchester City at the Parc des Princes in Paris, Wednesday, Jan. 22, 2025. (AP Photo/Thibault Camus)

Credit: AP

icon to expand image

Credit: AP

Arsenal's Declan Rice celebrates after scoring his side's opening goal during the Champions League soccer match between Arsenal and Dinamo Zagreb at the Emirates stadium in London, Wednesday, Jan. 22, 2025. (AP Photo/Kin Cheung)

Credit: AP

icon to expand image

Credit: AP

Brest's goalkeeper Marco Bizot fails to save a penalty kick taken by Shakhtar's Heorhiy Sudakov, left, during the Champions League opening phase soccer match between Shakhtar Donetsk and Stade Brest at the Arena AufSchalke in Gelsenkirchen, Germany, Wednesday Jan. 22, 2025. (AP Photo/Martin Meissner)

Credit: AP

icon to expand image

Credit: AP

Manchester City's Erling Haaland, 2nd left, celebrates after scoring his side's second goal during a Champions League opening phase soccer match between Paris Saint-Germain and Manchester City at the Parc des Princes in Paris, Wednesday, Jan. 22, 2025. (AP Photo/Thibault Camus)

Credit: AP

icon to expand image

Credit: AP

Shakhtar's Heorhiy Sudakov scores from the penalty spot during the Champions League opening phase soccer match between Shakhtar Donetsk and Stade Brest at the Arena AufSchalke in Gelsenkirchen, Germany, Wednesday Jan. 22, 2025. (AP Photo/Martin Meissner)

Credit: AP

icon to expand image

Credit: AP

Manchester City's Jack Grealish scores his sides opening goal during the Champions League opening phase soccer match between Paris Saint-Germain and Manchester City at the Parc des Princes in Paris, Wednesday, Jan. 22, 2025. (AP Photo/Michel Euler)

Credit: AP

icon to expand image

Credit: AP

Arsenal's Declan Rice scores his side's opening goal during the Champions League soccer match between Arsenal and Dinamo Zagreb at the Emirates stadium in London, Wednesday, Jan. 22, 2025. (AP Photo/Kin Cheung)

Credit: AP

icon to expand image

Credit: AP

Leipzig's Benjamin Sesko scores his side's opening goal during the Champions League soccer match between RB Leipzig and Sporting CP at the RB Arena in Leipzig, Germany, Wednesday, Jan. 22, 2025. (AP Photo/Matthias Schrader)

Credit: AP

icon to expand image

Credit: AP

Sporting's Viktor Gyoekeres scores his side's opening goal during the Champions League soccer match between RB Leipzig and Sporting CP at the RB Arena in Leipzig, Germany, Wednesday, Jan. 22, 2025. (AP Photo/Matthias Schrader)

Credit: AP

icon to expand image

Credit: AP

Leipzig's Yussuf Poulsen celebrates after scoring his side's second goal during the Champions League soccer match between RB Leipzig and Sporting CP at the RB Arena in Leipzig, Germany, Wednesday, Jan. 22, 2025. (AP Photo/Matthias Schrader)

Credit: AP

icon to expand image

Credit: AP

Shakhtar's Kevin, right, celebrates after scoring his side's first goal during the Champions League opening phase soccer match between Shakhtar Donetsk and Stade Brest at the Arena AufSchalke in Gelsenkirchen, Germany, Wednesday Jan. 22, 2025. (AP Photo/Martin Meissner)

Credit: AP

icon to expand image

Credit: AP

PSG's Goncalo Ramos celebrates after scoring his side's fourth goal during the Champions League opening phase soccer match between Paris Saint-Germain and Manchester City at the Parc des Princes in Paris, Wednesday, Jan. 22, 2025. (AP Photo/Michel Euler)

Credit: AP

icon to expand image

Credit: AP