The three points also proves to be a massive boost for the Hammers' hopes of playing European football in the Olympic Stadium, as they move to sixth and within a point of Louis van Gaal's men in fifth.

It also boosts Manchester City's hopes of Champions League football next season, as they stay in fourth spot going into the final game of the season.

West Ham were quick out the blocks and Diafra Sakho gave them the lead on ten minutes.

Anthony Martial netted twice in the second half to give Manchester United the advantage, sending the away crowd into hysterics.

The packed out Boleyn Ground roared twice more as Michail Antonio drew them level on 76 minutes, Reid putting them ahead four minutes later to settle the five-goal thriller.

The final match at Upton Park certainly lived up to the billing and the home side needed just 10 minutes to go ahead when play eventually got under way at 8.30pm.

Manuel Lanzini's smart cross from the left found Sakho, whose curling strike clipped Daley Blind and beat David de Gea in front of the Sir Trevor Brooking Stand.

Upton Park was rocking and the hosts looked set to add another, with Mark Noble's audacious volley blocked and star turn Payet firing a shot straight at the goalkeeper.

United were struggling to cope with Bilic's men and looked to have fallen further behind when Antonio rose to bundle home at the far post, but the goal was ruled out after the ball went out of play in the build-up.

The home side were now struggling to break down Van Gaal's men and the fans in the Bobby Moore Stand tried to wind up De Gea by refusing to give the ball back

When he finally took his goal-kick, though, Marcus Rashford gathered the ball and played through Juan Mata, whose cutback was directed home by Martial

A water bottle appeared to be thrown De Gea's way as he celebrated in front of the home fan

Payet curled into the side-netting and Sakho missed from close range as the hosts attempted to quickly wrestle back the advantage

Martial cleared a Carroll header off the line but it was Darren Randolph's goal rather than the Red Devils' that the ball would head into in the 72nd minute

Play was broken up in the middle and Rashford played the ball out to Martial, whose burst took him past Reid and the striker's cross-shot beat the West Ham goalkeeper at the near post.

The frustration was palpable inside Upton Park, but four minutes later the mood swung wildly.

Payet's free-kick may have been blocked but he collected the loose ball and crossed for Antonio to power a header past De Gea.

Things would get better still in the 80th minute as Payet swung in a free-kick that Reid got to with just enough power to beat De Gea, sending the home faithful wild.

It proved the final goal in Upton Park's 112-year history as the ground received a send-off to remember.