It's all over. Newcastle go nine points clear of the relegation zone, while this defeat is a blow for West Ham's Champions League hopes.
What a game!
That's the end of this live text now. We'll be back later for the FA Cup semi-final between Chelsea and Manchester CIty at 17:30 BST. Bye now.