v3.26.1
Fair Value Measurements (Fair Value of Financial Assets and Liabilities) (Details) - USD ($)
$ in Millions
Jul. 31, 2026
Jul. 31, 2025
Cash equivalents:    
Cash equivalents $ 1,637 $ 1,375
Prepaid expenses and other current assets:    
Foreign currency forward contracts 18 58
Total prepaid expenses and other current assets 18 58
Other assets:    
Capped calls related to convertible senior notes 153 0
Total other assets 153 3
Total assets measured at fair value 7,035 7,621
Accrued and other liabilities:    
Deferred compensation liability 5 2
Contingent consideration 116 276
Total accrued and other liabilities 145 282
Long-term convertible senior notes 1,774 0
Other long-term liabilities:    
Deferred compensation liability 400 57
Contingent consideration 90 238
Total other long-term liabilities 490 295
Total liabilities measured at fair value 2,409 577
Short-Term Investments    
Short and Long-term Investments    
Short and long-term investments 392 630
Long-Term Investments    
Short and Long-term Investments    
Short and long-term investments 4,835 5,555
Level 1    
Cash equivalents:    
Cash equivalents 1,514 1,206
Prepaid expenses and other current assets:    
Foreign currency forward contracts 0 0
Total prepaid expenses and other current assets 0 0
Other assets:    
Capped calls related to convertible senior notes 0 0
Total other assets 0 0
Total assets measured at fair value 1,514 1,206
Accrued and other liabilities:    
Deferred compensation liability 5 2
Contingent consideration 0 0
Total accrued and other liabilities 5 2
Long-term convertible senior notes 0 0
Other long-term liabilities:    
Deferred compensation liability 400 57
Contingent consideration 0 0
Total other long-term liabilities 400 57
Total liabilities measured at fair value 405 59
Level 1 | Short-Term Investments    
Short and Long-term Investments    
Short and long-term investments 0 0
Level 1 | Long-Term Investments    
Short and Long-term Investments    
Short and long-term investments 0 0
Level 2    
Cash equivalents:    
Cash equivalents 123 169
Prepaid expenses and other current assets:    
Foreign currency forward contracts 18 58
Total prepaid expenses and other current assets 18 58
Other assets:    
Capped calls related to convertible senior notes 153 0
Total other assets 153 3
Total assets measured at fair value 5,521 6,415
Accrued and other liabilities:    
Deferred compensation liability 0 0
Contingent consideration 0 0
Total accrued and other liabilities 24 4
Long-term convertible senior notes 1,774 0
Other long-term liabilities:    
Deferred compensation liability 0 0
Contingent consideration 0 0
Total other long-term liabilities 0 0
Total liabilities measured at fair value 1,798 4
Level 2 | Short-Term Investments    
Short and Long-term Investments    
Short and long-term investments 392 630
Level 2 | Long-Term Investments    
Short and Long-term Investments    
Short and long-term investments 4,835 5,555
Level 3    
Cash equivalents:    
Cash equivalents 0 0
Prepaid expenses and other current assets:    
Foreign currency forward contracts 0 0
Total prepaid expenses and other current assets 0 0
Other assets:    
Capped calls related to convertible senior notes 0 0
Total other assets 0 0
Total assets measured at fair value 0 0
Accrued and other liabilities:    
Deferred compensation liability 0 0
Contingent consideration 116 276
Total accrued and other liabilities 116 276
Long-term convertible senior notes 0 0
Other long-term liabilities:    
Deferred compensation liability 0 0
Contingent consideration 90 238
Total other long-term liabilities 90 238
Total liabilities measured at fair value 206 514
Level 3 | Short-Term Investments    
Short and Long-term Investments    
Short and long-term investments 0 0
Level 3 | Long-Term Investments    
Short and Long-term Investments    
Short and long-term investments 0 0
Money market funds    
Cash equivalents:    
Cash equivalents 1,514 1,206
Money market funds | Level 1    
Cash equivalents:    
Cash equivalents 1,514 1,206
Money market funds | Level 2    
Cash equivalents:    
Cash equivalents 0 0
Money market funds | Level 3    
Cash equivalents:    
Cash equivalents 0 0
Commercial paper    
Cash equivalents:    
Cash equivalents 123 169
Commercial paper | Short-Term Investments    
Short and Long-term Investments    
Short and long-term investments 10 15
Commercial paper | Level 1    
Cash equivalents:    
Cash equivalents 0 0
Commercial paper | Level 1 | Short-Term Investments    
Short and Long-term Investments    
Short and long-term investments 0 0
Commercial paper | Level 2    
Cash equivalents:    
Cash equivalents 123 169
Commercial paper | Level 2 | Short-Term Investments    
Short and Long-term Investments    
Short and long-term investments 10 15
Commercial paper | Level 3    
Cash equivalents:    
Cash equivalents 0 0
Commercial paper | Level 3 | Short-Term Investments    
Short and Long-term Investments    
Short and long-term investments 0 0
Corporate debt securities | Short-Term Investments    
Short and Long-term Investments    
Short and long-term investments 374 584
Corporate debt securities | Long-Term Investments    
Short and Long-term Investments    
Short and long-term investments 3,843 4,050
Corporate debt securities | Level 1 | Short-Term Investments    
Short and Long-term Investments    
Short and long-term investments 0 0
Corporate debt securities | Level 1 | Long-Term Investments    
Short and Long-term Investments    
Short and long-term investments 0 0
Corporate debt securities | Level 2 | Short-Term Investments    
Short and Long-term Investments    
Short and long-term investments 374 584
Corporate debt securities | Level 2 | Long-Term Investments    
Short and Long-term Investments    
Short and long-term investments 3,843 4,050
Corporate debt securities | Level 3 | Short-Term Investments    
Short and Long-term Investments    
Short and long-term investments 0 0
Corporate debt securities | Level 3 | Long-Term Investments    
Short and Long-term Investments    
Short and long-term investments 0 0
U.S. government and agency securities | Short-Term Investments    
Short and Long-term Investments    
Short and long-term investments 2 6
U.S. government and agency securities | Long-Term Investments    
Short and Long-term Investments    
Short and long-term investments 68 164
U.S. government and agency securities | Level 1 | Short-Term Investments    
Short and Long-term Investments    
Short and long-term investments 0 0
U.S. government and agency securities | Level 1 | Long-Term Investments    
Short and Long-term Investments    
Short and long-term investments 0 0
U.S. government and agency securities | Level 2 | Short-Term Investments    
Short and Long-term Investments    
Short and long-term investments 2 6
U.S. government and agency securities | Level 2 | Long-Term Investments    
Short and Long-term Investments    
Short and long-term investments 68 164
U.S. government and agency securities | Level 3 | Short-Term Investments    
Short and Long-term Investments    
Short and long-term investments 0 0
U.S. government and agency securities | Level 3 | Long-Term Investments    
Short and Long-term Investments    
Short and long-term investments 0 0
Non-U.S. government and agency securities | Short-Term Investments    
Short and Long-term Investments    
Short and long-term investments 0 3
Non-U.S. government and agency securities | Long-Term Investments    
Short and Long-term Investments    
Short and long-term investments 21 26
Non-U.S. government and agency securities | Level 1 | Short-Term Investments    
Short and Long-term Investments    
Short and long-term investments 0 0
Non-U.S. government and agency securities | Level 1 | Long-Term Investments    
Short and Long-term Investments    
Short and long-term investments 0 0
Non-U.S. government and agency securities | Level 2 | Short-Term Investments    
Short and Long-term Investments    
Short and long-term investments 0 3
Non-U.S. government and agency securities | Level 2 | Long-Term Investments    
Short and Long-term Investments    
Short and long-term investments 21 26
Non-U.S. government and agency securities | Level 3 | Short-Term Investments    
Short and Long-term Investments    
Short and long-term investments 0 0
Non-U.S. government and agency securities | Level 3 | Long-Term Investments    
Short and Long-term Investments    
Short and long-term investments 0 0
Asset-backed securities | Short-Term Investments    
Short and Long-term Investments    
Short and long-term investments 6 22
Asset-backed securities | Long-Term Investments    
Short and Long-term Investments    
Short and long-term investments 903 1,315
Asset-backed securities | Level 1 | Short-Term Investments    
Short and Long-term Investments    
Short and long-term investments 0 0
Asset-backed securities | Level 1 | Long-Term Investments    
Short and Long-term Investments    
Short and long-term investments 0 0
Asset-backed securities | Level 2 | Short-Term Investments    
Short and Long-term Investments    
Short and long-term investments 6 22
Asset-backed securities | Level 2 | Long-Term Investments    
Short and Long-term Investments    
Short and long-term investments 903 1,315
Asset-backed securities | Level 3 | Short-Term Investments    
Short and Long-term Investments    
Short and long-term investments 0 0
Asset-backed securities | Level 3 | Long-Term Investments    
Short and Long-term Investments    
Short and long-term investments 0 0
Foreign currency forward contracts    
Other assets:    
Foreign currency forward contracts $ 0 $ 3
Foreign currency forward contracts Other assets Other assets
Accrued and other liabilities:    
Foreign currency forward contracts $ 24 $ 4
Foreign currency forward contracts Accrued and other liabilities Accrued and other liabilities
Foreign currency forward contracts | Level 1    
Other assets:    
Foreign currency forward contracts $ 0 $ 0
Accrued and other liabilities:    
Foreign currency forward contracts 0 0
Foreign currency forward contracts | Level 2    
Other assets:    
Foreign currency forward contracts 0 3
Accrued and other liabilities:    
Foreign currency forward contracts 24 4
Foreign currency forward contracts | Level 3    
Other assets:    
Foreign currency forward contracts 0 0
Accrued and other liabilities:    
Foreign currency forward contracts $ 0 $ 0