Pakistan thumped Bangladesh by 94 runs in their last World Cup group match on Friday but suffered a painful exit as New Zealand pipped them to a semifinal place on net run-rate. Sarfaraz Ahmed's team needed to smash the world record for margin of victory in a one-day international but a miracle win never looked remotely likely at a sun-drenched Lord's. Pakistan's total of 315 for nine meant Bangladesh needed only eight runs to end the 1992 world champions' hopes of advancing to the semi-finals. Teenager Shaheen Afridi returned the best-ever figures for Pakistan at a World Cup of 6-35 as they finished level on 11 points and games won (five) with fourth-placed New Zealand, missing out on the top four due to their inferior run-rate. The other teams in next week's semi-inals are Australia, India and hosts England, with the final group matches taking place on Saturday. Pakistan finished the tournament with four straight wins but ultimately paid the price for a sluggish start. "Unfortunately we played very good cricket in the last four matches but we have not qualified," said Sarfaraz. "Only the one match will cost us in the whole tournament (against West Indies). We played very good cricket." Pakistan, backed by thousands of passionate flag-waving fans in London, started curiously slowly, crawling to 38-1 after 10 overs. Imam-ul-Haq (100) and Babar Azam (96) eventually stepped on the gas, reaching their 150 partnership for the second wicket off 146 balls but both fell in quick succession to suck the momentum out of their innings. A late flourish from Imad Wasim, who scored 43 runs from 26 balls, boosted the score but Pakistan lacked the muscle to put themselves out of sight. Mustafizur Rahman took five wickets for Bangladesh, including a superb caught and bowled to dismiss Shadab Khan. In reply, Shakib Al Hasan (64) scored his seventh fifty of the World Cup to shoot to the top of the tournament's run-scoring charts, with 606 runs at an average of more than 86. His seven scores of fifty-plus equal the record set by India's Sachin Tendulkar at the 2003 tournament. But Bangladesh lost wickets at regular intervals and were bowled out for 221 in the 45th over, with man-of-the-match Shaheen doing most of the damage with his left-arm seam. Pakistan paid a heavy price for a slow start to their World Cup campaign, winning just one of their first five matches. They were shot out for a paltry 105 in their first match, with the West Indies winning in just 13.4 overs, meaning they took a huge hit on run rate. They came back strongly to beat South Africa, New Zealand and Afghanistan to sit fifth in the 10-team table, but in the end left themselves too much to do. Bangladesh ended the 10-team group phase in seventh spot with three wins in their nine matches. Bangladesh skipper Mashrafe Mortaza said: "We feel very sorry for Shakib that we couldn't support him all through the tournament, otherwise things could have been very different. He has been fantastic." SCOREBOARD Pakistan Fakhar Zaman c Mehidy b Saifuddin 13 Imam-ul-Haq hit wicket b Mustafizur 100 Babar Azam lbw b Saifuddin 96 Mohammad Hafeez c Shakib b Mehidy 27 Haris Sohail c Soumya b Mustafizur 6 Imad Wasim c Mahmudullah b Mustafizur 43 Sarfaraz Ahmed not out 3 Wahab Riaz b Saifuddin 2 Shadab Khan c and b Mustafizur 1 Mohammad Amir c Mushfiqur b Mustafizur 8 Shaheen Shah Afridi not out 0 Extras (lb3, nb1, w12) 16 Total (nine wickets, 50 overs) 315 Fall of wickets: 1-23 (Fakhar), 2-180 (Babar), 3-246 (Imam), 4-248 (Hafeez), 5-255 (Sohail), 6-288 (Riaz), 7-289 (Shadab), 8-314 (Imad), 9-314 (Amir). Bowling: Mehidy 10-0-30-1 (1w), Saifuddin 9-0-77-3 (3w), Mustafizur 10-0-75-5 (1w), Mashrafe 7-0-46-0, Shakib 10-0-57-0 (1w), Mosaddek 4-0-27-0 (1w). Bangladesh Tamim Iqbal b Shaheen 8 Soumya Sarkar c Fakhar b Amir 22 Shakib Al Hasan c Sarfaraz b Shaheen 64 Mushfiqur Rahim b Riaz 16 Liton Das c Sohail b Shaheen 32 Mahmudullah b Shaheen 29 Mosaddek Hossain c Babar b Shadab 16 Mohammad Saifuddin c Amir b Shaheen 0 Mehidy Hasan Miraz not out 7 Mashrafe Mortaza st Sarfaraz b Shadab 15 Mustafizur Rahman b Shaheen 1 Extras (lb5, w6) 11 Total (all out, 44.1 overs) 221 Fall of wickets: 1-26 (Sarkar), 2-48 (Iqbal), 3-78 (Rahim), 4-136 (Das), 5-154 (Shakib), 6-197 (Mosaddek), 7-197 (Saifuddin), 8-198 (Mahmudullah), 9-219 (Mortaza). Bowling: Hafeez 6-1-32-0, Amir 7-0-31-1 (1w), Shaheen 9.1-0-35-6 (4w), Riaz 7-0-33-1 (1w), Imad 6-0-26-0, Shadab 9-0-59-2.