v3.26.1
Description of Business and Summary of Significant Accounting Policies - Schedule of Basic and Diluted Net Income Per Share (Details) - USD ($)
$ / shares in Units, shares in Millions, $ in Millions
3 Months Ended 9 Months Ended
Apr. 30, 2026
Apr. 30, 2025
Apr. 30, 2026
Apr. 30, 2025
Numerator:        
Net income $ 3,064 $ 2,820 $ 4,203 $ 3,488
Shares used in basic per share calculations:        
Weighted-average common shares outstanding (in shares) 276 280 278 280
Shares used in diluted per share calculations:        
Weighted-average common shares outstanding (in shares) 276 280 278 280
Dilutive potential common equivalent shares from share-based awards (in shares) 0 2 1 3
Dilutive weighted-average common shares outstanding (in shares) 276 282 279 283
Basic and diluted net income per share:        
Basic net income per share (in dollars per share) $ 11.10 $ 10.09 $ 15.13 $ 12.45
Diluted net income per share (in dollars per share) $ 11.09 $ 10.02 $ 15.05 $ 12.33
Shares excluded from diluted net income per share:        
Weighted-average share-based awards that have been excluded from dilutive common equivalent shares outstanding due to their anti-dilutive effect (in shares) 7 1 3 0