v3.26.1
Fair Value Measurements (Fair Value of Financial Assets and Liabilities) (Details) - USD ($)
$ in Millions
Apr. 30, 2026
Jul. 31, 2025
Cash equivalents:    
Cash equivalents $ 1,556 $ 1,375
Prepaid expenses and other current assets:    
Foreign currency forward contracts 64 58
Total prepaid expenses and other current assets 64 58
Other assets:    
Derivative asset 94 0
Total other assets 95 3
Total assets measured at fair value 6,059 7,621
Accrued and other liabilities:    
Short-term convertible senior notes 160 0
Contingent consideration 124 276
Total accrued and other liabilities 129 280
Other long-term liabilities:    
Long-term convertible senior notes 1,192 0
Contingent consideration 116 238
Total other long-term liabilities 117 238
Total liabilities measured at fair value 1,598 518
Short-Term Investments    
Short-term investments:    
Short and long-term investments 463 630
Long-Term Investments    
Short-term investments:    
Short and long-term investments 3,881 5,555
Money market funds    
Cash equivalents:    
Cash equivalents 944 1,206
Certificates of deposit | Short-Term Investments    
Short-term investments:    
Short and long-term investments 0 0
Commercial paper    
Cash equivalents:    
Cash equivalents 535 169
Commercial paper | Short-Term Investments    
Short-term investments:    
Short and long-term investments 10 15
Corporate debt securities    
Cash equivalents:    
Cash equivalents 2 0
Corporate debt securities | Short-Term Investments    
Short-term investments:    
Short and long-term investments 413 584
Corporate debt securities | Long-Term Investments    
Short-term investments:    
Short and long-term investments 3,118 4,050
U.S. government and agency securities    
Cash equivalents:    
Cash equivalents 75 0
U.S. government and agency securities | Short-Term Investments    
Short-term investments:    
Short and long-term investments 27 6
U.S. government and agency securities | Long-Term Investments    
Short-term investments:    
Short and long-term investments 39 164
Non-U.S. government and agency securities | Short-Term Investments    
Short-term investments:    
Short and long-term investments 0 3
Non-U.S. government and agency securities | Long-Term Investments    
Short-term investments:    
Short and long-term investments 0 26
Asset-backed securities | Short-Term Investments    
Short-term investments:    
Short and long-term investments 13 22
Asset-backed securities | Long-Term Investments    
Short-term investments:    
Short and long-term investments 724 1,315
Foreign Exchange Forward    
Other assets:    
Foreign currency forward contracts $ 1 $ 3
Foreign currency forward contracts Other assets Other assets
Accrued and other liabilities:    
Foreign currency forward contracts $ 5 $ 4
Foreign currency forward contracts Accrued and other liabilities Accrued and other liabilities
Other long-term liabilities:    
Foreign currency forward contracts $ 1 $ 0
Foreign currency forward contracts Other long-term liabilities Other long-term liabilities
Level 1    
Cash equivalents:    
Cash equivalents $ 944 $ 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:    
Derivative asset 0 0
Total other assets 0 0
Total assets measured at fair value 944 1,206
Accrued and other liabilities:    
Short-term convertible senior notes 0 0
Contingent consideration 0 0
Total accrued and other liabilities 0 0
Other long-term liabilities:    
Long-term convertible senior notes 0 0
Contingent consideration 0 0
Total other long-term liabilities 0 0
Total liabilities measured at fair value 0 0
Level 1 | Short-Term Investments    
Short-term investments:    
Short and long-term investments 0 0
Level 1 | Long-Term Investments    
Short-term investments:    
Short and long-term investments 0 0
Level 1 | Money market funds    
Cash equivalents:    
Cash equivalents 944 1,206
Level 1 | Certificates of deposit | Short-Term Investments    
Short-term investments:    
Short and long-term investments 0 0
Level 1 | Commercial paper    
Cash equivalents:    
Cash equivalents 0 0
Level 1 | Commercial paper | Short-Term Investments    
Short-term investments:    
Short and long-term investments 0 0
Level 1 | Corporate debt securities    
Cash equivalents:    
Cash equivalents 0 0
Level 1 | Corporate debt securities | Short-Term Investments    
Short-term investments:    
Short and long-term investments 0 0
Level 1 | Corporate debt securities | Long-Term Investments    
Short-term investments:    
Short and long-term investments 0 0
Level 1 | U.S. government and agency securities    
Cash equivalents:    
Cash equivalents 0 0
Level 1 | U.S. government and agency securities | Short-Term Investments    
Short-term investments:    
Short and long-term investments 0 0
Level 1 | U.S. government and agency securities | Long-Term Investments    
Short-term investments:    
Short and long-term investments 0 0
Level 1 | Non-U.S. government and agency securities | Short-Term Investments    
Short-term investments:    
Short and long-term investments 0 0
Level 1 | Non-U.S. government and agency securities | Long-Term Investments    
Short-term investments:    
Short and long-term investments 0 0
Level 1 | Asset-backed securities | Short-Term Investments    
Short-term investments:    
Short and long-term investments 0 0
Level 1 | Asset-backed securities | Long-Term Investments    
Short-term investments:    
Short and long-term investments 0 0
Level 1 | Foreign Exchange Forward    
Other assets:    
Foreign currency forward contracts 0 0
Accrued and other liabilities:    
Foreign currency forward contracts 0 0
Other long-term liabilities:    
Foreign currency forward contracts 0 0
Level 2    
Cash equivalents:    
Cash equivalents 612 169
Prepaid expenses and other current assets:    
Foreign currency forward contracts 64 58
Total prepaid expenses and other current assets 64 58
Other assets:    
Derivative asset 94 0
Total other assets 95 3
Total assets measured at fair value 5,115 6,415
Accrued and other liabilities:    
Short-term convertible senior notes 160 0
Contingent consideration 0 0
Total accrued and other liabilities 5 4
Other long-term liabilities:    
Long-term convertible senior notes 1,192 0
Contingent consideration 0 0
Total other long-term liabilities 1 0
Total liabilities measured at fair value 1,358 4
Level 2 | Short-Term Investments    
Short-term investments:    
Short and long-term investments 463 630
Level 2 | Long-Term Investments    
Short-term investments:    
Short and long-term investments 3,881 5,555
Level 2 | Money market funds    
Cash equivalents:    
Cash equivalents 0 0
Level 2 | Certificates of deposit | Short-Term Investments    
Short-term investments:    
Short and long-term investments 0 0
Level 2 | Commercial paper    
Cash equivalents:    
Cash equivalents 535 169
Level 2 | Commercial paper | Short-Term Investments    
Short-term investments:    
Short and long-term investments 10 15
Level 2 | Corporate debt securities    
Cash equivalents:    
Cash equivalents 2 0
Level 2 | Corporate debt securities | Short-Term Investments    
Short-term investments:    
Short and long-term investments 413 584
Level 2 | Corporate debt securities | Long-Term Investments    
Short-term investments:    
Short and long-term investments 3,118 4,050
Level 2 | U.S. government and agency securities    
Cash equivalents:    
Cash equivalents 75 0
Level 2 | U.S. government and agency securities | Short-Term Investments    
Short-term investments:    
Short and long-term investments 27 6
Level 2 | U.S. government and agency securities | Long-Term Investments    
Short-term investments:    
Short and long-term investments 39 164
Level 2 | Non-U.S. government and agency securities | Short-Term Investments    
Short-term investments:    
Short and long-term investments 0 3
Level 2 | Non-U.S. government and agency securities | Long-Term Investments    
Short-term investments:    
Short and long-term investments 0 26
Level 2 | Asset-backed securities | Short-Term Investments    
Short-term investments:    
Short and long-term investments 13 22
Level 2 | Asset-backed securities | Long-Term Investments    
Short-term investments:    
Short and long-term investments 724 1,315
Level 2 | Foreign Exchange Forward    
Other assets:    
Foreign currency forward contracts 1 3
Accrued and other liabilities:    
Foreign currency forward contracts 5 4
Other long-term liabilities:    
Foreign currency forward contracts 1 0
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:    
Derivative asset 0 0
Total other assets 0 0
Total assets measured at fair value 0 0
Accrued and other liabilities:    
Short-term convertible senior notes 0 0
Contingent consideration 124 276
Total accrued and other liabilities 124 276
Other long-term liabilities:    
Long-term convertible senior notes 0 0
Contingent consideration 116 238
Total other long-term liabilities 116 238
Total liabilities measured at fair value 240 514
Level 3 | Short-Term Investments    
Short-term investments:    
Short and long-term investments 0 0
Level 3 | Long-Term Investments    
Short-term investments:    
Short and long-term investments 0 0
Level 3 | Money market funds    
Cash equivalents:    
Cash equivalents 0 0
Level 3 | Certificates of deposit | Short-Term Investments    
Short-term investments:    
Short and long-term investments 0 0
Level 3 | Commercial paper    
Cash equivalents:    
Cash equivalents 0 0
Level 3 | Commercial paper | Short-Term Investments    
Short-term investments:    
Short and long-term investments 0 0
Level 3 | Corporate debt securities    
Cash equivalents:    
Cash equivalents 0 0
Level 3 | Corporate debt securities | Short-Term Investments    
Short-term investments:    
Short and long-term investments 0 0
Level 3 | Corporate debt securities | Long-Term Investments    
Short-term investments:    
Short and long-term investments 0 0
Level 3 | U.S. government and agency securities    
Cash equivalents:    
Cash equivalents 0 0
Level 3 | U.S. government and agency securities | Short-Term Investments    
Short-term investments:    
Short and long-term investments 0 0
Level 3 | U.S. government and agency securities | Long-Term Investments    
Short-term investments:    
Short and long-term investments 0 0
Level 3 | Non-U.S. government and agency securities | Short-Term Investments    
Short-term investments:    
Short and long-term investments 0 0
Level 3 | Non-U.S. government and agency securities | Long-Term Investments    
Short-term investments:    
Short and long-term investments 0 0
Level 3 | Asset-backed securities | Short-Term Investments    
Short-term investments:    
Short and long-term investments 0 0
Level 3 | Asset-backed securities | Long-Term Investments    
Short-term investments:    
Short and long-term investments 0 0
Level 3 | Foreign Exchange Forward    
Other assets:    
Foreign currency forward contracts 0 0
Accrued and other liabilities:    
Foreign currency forward contracts 0 0
Other long-term liabilities:    
Foreign currency forward contracts $ 0 $ 0