Fair Value of Financial Instruments (Details 3) - USD ($) $ in Thousands | Apr. 30, 2023 | Jul. 31, 2022 |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Total cash equivalents | $ 194,172 | $ 501,247 |
Total short-term investments | 421,202 | 369,865 |
Total long-term investments | 119,098 | 187,507 |
Total | 734,472 | 1,058,619 |
Strategic investment, noncurrent, quarter to date | 2,200 | |
Strategic investment, noncurrent, year to date | 8,300 | |
Equity investments | 26,000 | 18,000 |
Senior Notes | Convertible Senior Notes, 1.250% | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Fair value of debt | 382,000 | 387,600 |
Level 1 | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Total cash equivalents | 127,872 | 349,492 |
Total short-term investments | 0 | 0 |
Total long-term investments | 0 | 0 |
Total | 127,872 | 349,492 |
Level 2 | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Total cash equivalents | 66,300 | 151,755 |
Total short-term investments | 421,202 | 369,865 |
Total long-term investments | 119,098 | 187,507 |
Total | 606,600 | 709,127 |
Level 3 | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Total cash equivalents | 0 | 0 |
Total short-term investments | 0 | 0 |
Total long-term investments | 0 | 0 |
Total | 0 | 0 |
Commercial paper | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Total cash equivalents | 54,339 | 132,066 |
Commercial paper | Level 1 | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Total cash equivalents | 0 | 0 |
Commercial paper | Level 2 | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Total cash equivalents | 54,339 | 132,066 |
Commercial paper | Level 3 | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Total cash equivalents | 0 | 0 |
Certificates of deposit | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Total cash equivalents | 1,979 | 9,689 |
Certificates of deposit | Level 1 | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Total cash equivalents | 0 | 0 |
Certificates of deposit | Level 2 | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Total cash equivalents | 1,979 | 9,689 |
Certificates of deposit | Level 3 | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Total cash equivalents | 0 | 0 |
Money market funds | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Total cash equivalents | 127,872 | 349,492 |
Money market funds | Level 1 | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Total cash equivalents | 127,872 | 349,492 |
Money market funds | Level 2 | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Total cash equivalents | 0 | 0 |
Money market funds | Level 3 | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Total cash equivalents | 0 | 0 |
U.S. Government agency securities | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Total cash equivalents | 9,982 | 10,000 |
U.S. Government agency securities | Level 1 | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Total cash equivalents | 0 | 0 |
U.S. Government agency securities | Level 2 | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Total cash equivalents | 9,982 | 10,000 |
U.S. Government agency securities | Level 3 | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Total cash equivalents | 0 | 0 |
Commercial paper | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Total short-term investments | 107,377 | 65,932 |
Commercial paper | Level 1 | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Total short-term investments | 0 | 0 |
Commercial paper | Level 2 | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Total short-term investments | 107,377 | 65,932 |
Commercial paper | Level 3 | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Total short-term investments | 0 | 0 |
Corporate bonds | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Total short-term investments | 185,314 | 203,960 |
Total long-term investments | 30,151 | 111,642 |
Corporate bonds | Level 1 | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Total short-term investments | 0 | 0 |
Total long-term investments | 0 | 0 |
Corporate bonds | Level 2 | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Total short-term investments | 185,314 | 203,960 |
Total long-term investments | 30,151 | 111,642 |
Corporate bonds | Level 3 | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Total short-term investments | 0 | 0 |
Total long-term investments | 0 | 0 |
Certificates of deposit | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Total short-term investments | 28,468 | 34,026 |
Certificates of deposit | Level 1 | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Total short-term investments | 0 | 0 |
Certificates of deposit | Level 2 | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Total short-term investments | 28,468 | 34,026 |
Certificates of deposit | Level 3 | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Total short-term investments | 0 | 0 |
U.S. Government bonds | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Total short-term investments | 12,296 | 25,429 |
Total long-term investments | 32,425 | 20,273 |
U.S. Government bonds | Level 1 | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Total short-term investments | 0 | 0 |
Total long-term investments | 0 | 0 |
U.S. Government bonds | Level 2 | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Total short-term investments | 12,296 | 25,429 |
Total long-term investments | 32,425 | 20,273 |
U.S. Government bonds | Level 3 | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Total short-term investments | 0 | 0 |
Total long-term investments | 0 | 0 |
U.S. Government agency securities | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Total short-term investments | 76,189 | 26,986 |
Total long-term investments | 3,253 | |
U.S. Government agency securities | Level 1 | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Total short-term investments | 0 | 0 |
Total long-term investments | 0 | |
U.S. Government agency securities | Level 2 | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Total short-term investments | 76,189 | 26,986 |
Total long-term investments | 3,253 | |
U.S. Government agency securities | Level 3 | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Total short-term investments | 0 | 0 |
Total long-term investments | 0 | |
Asset-backed securities | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Total short-term investments | 3,623 | 8,627 |
Total long-term investments | 46,842 | 45,544 |
Asset-backed securities | Level 1 | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Total short-term investments | 0 | 0 |
Total long-term investments | 0 | 0 |
Asset-backed securities | Level 2 | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Total short-term investments | 3,623 | 8,627 |
Total long-term investments | 46,842 | 45,544 |
Asset-backed securities | Level 3 | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Total short-term investments | 0 | 0 |
Total long-term investments | 0 | 0 |
Foreign government bonds | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Total short-term investments | 7,935 | 4,700 |
Total long-term investments | 6,427 | 10,048 |
Foreign government bonds | Level 1 | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Total short-term investments | 0 | 0 |
Total long-term investments | 0 | 0 |
Foreign government bonds | Level 2 | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Total short-term investments | 7,935 | 4,700 |
Total long-term investments | 6,427 | 10,048 |
Foreign government bonds | Level 3 | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Total short-term investments | 0 | 0 |
Total long-term investments | $ 0 | 0 |
Municipal bonds | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Total short-term investments | | 205 |
Municipal bonds | Level 1 | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Total short-term investments | | 0 |
Municipal bonds | Level 2 | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Total short-term investments | | 205 |
Municipal bonds | Level 3 | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Total short-term investments | | $ 0 |