Walmart on Thursday topped quarterly earnings and revenue expectations, as the discounter made significant e-commerce gains, drove profits with newer businesses like advertising and won over…