The company also reported earnings per share of $1.71 compared with the $1.51 analysts expected.
Here's how much money you'd have as of Feb. 21, 2023 if you had invested $1,000 into the company one, five and 10 years ago.
If you had invested $1,000 into Walmart a year ago, you'd have about $1,084 as of Feb. 21, according to CNBC's calculations.
If you had invested $1,000 into Walmart five years ago, your investment would have increased to $1,728 as of Feb. 21, according to CNBC's calculations.
And if you had put $1,000 into Walmart a decade to grow, it would have more than doubled and risen to $2,390 as of Feb. 21, according to CNBC's calculations.