v3.26.1
Description of Business and Summary of Significant Accounting Policies - Schedule of shares used in the computation of basic and diluted net income per share (Details) - USD ($)
$ / shares in Units, shares in Millions, $ in Millions
12 Months Ended
Jul. 31, 2026
Jul. 31, 2025
Jul. 31, 2024
Numerator:      
Net income $ 4,566 $ 3,869 $ 2,963
Shares used in basic per share calculations:      
Weighted-average common shares outstanding (in shares) 276 280 280
Shares used in diluted per share calculations:      
Weighted-average common shares outstanding (in shares) 276 280 280
Dilutive common equivalent shares from stock options and restricted stock awards (in shares) 1 3 4
Dilutive weighted-average common shares outstanding (in shares) 277 283 284
Basic and diluted net income per share:      
Basic net income per share (in dollars per share) $ 16.53 $ 13.82 $ 10.58
Diluted net income per share (in dollars per share) $ 16.46 $ 13.67 $ 10.43
Weighted-average stock options and restricted stock units that have been excluded from dilutive common equivalent shares outstanding due to their anti-dilutive effect (in shares) 4 0 1