Martial netted twice in the second half to take the tie at Old Trafford away from West Ham, who had levelled through Ashley Fletcher following Ibrahimovic’s opener after two minutes.

The Swede added the fourth deep into stoppage-time.

United and West Ham met at the same venue in the Premier League on Sunday when United boss Jose Mourinho let his frustrations boil over and earned a second touchline ban of the season for booting a water bottle.

The Portuguese was banned from the dugout on Wednesday, but would have been delighted with the way United carved open their opponents after just two minutes with a fluent break.

West Ham opened the scoring on Sunday equally early, but they were caught cold as Wayne Rooney, one goal short of Bobby Charlton’s all-time club scoring record, fed Henrikh Mkhitaryan, whose backheel picked out Ibrahimovic to dink the ball into the net.

The Swede should have doubled the lead when he waltzed through the heart of the West Ham defence before twice being denied by keeper Adrian.

That could have proved a costly miss because for all United’s first-half dominance, they were pegged back 10 minutes before the break by one of their former players.

Having come through the youth ranks at United, Fletcher was allowed to join West Ham in the close season and punished his former employers by scoring from close range after David de Gea had spilled a shot from Dimitri Payet.

Payet, however, was the villain two minutes after halftime as his poor clearance was pounced on and fed to Mkhitaryan, who claimed his second assist by laying the ball off for Martial to blast past Adrian.

With 30 minutes remaining, Martial grabbed his second, tapping home Antonio Valencia’s cross before Ibrahimovic added the fourth from close range.