Fair Value of Financial Instruments (Details 3) - USD ($) $ in Thousands | Oct. 31, 2023 | Jul. 31, 2023 |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Total cash equivalents | $ 229,496 | $ 315,444 |
Total short-term investments | 411,528 | 396,872 |
Total long-term investments | 140,644 | 128,782 |
Total | 781,668 | 841,098 |
Strategic investment, noncurrent, quarter to date | 200 | |
Equity investments | 28,000 | 27,800 |
Senior Notes | Convertible Senior Notes, 1.250% | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Fair value of debt | 404,000 | 388,200 |
Level 1 | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Total cash equivalents | 138,674 | 229,721 |
Total short-term investments | 0 | 0 |
Total long-term investments | 0 | 0 |
Total | 138,674 | 229,721 |
Level 2 | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Total cash equivalents | 90,822 | 85,723 |
Total short-term investments | 411,528 | 396,872 |
Total long-term investments | 140,644 | 128,782 |
Total | 642,994 | 611,377 |
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 | 75,657 | 61,296 |
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 | 75,657 | 61,296 |
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 | 7,988 | 15,949 |
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 | 7,988 | 15,949 |
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 | 138,674 | 229,721 |
Money market funds | Level 1 | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Total cash equivalents | 138,674 | 229,721 |
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 | 7,177 | 8,478 |
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 | 7,177 | 8,478 |
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 | 115,488 | 88,958 |
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 | 115,488 | 88,958 |
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 | 150,917 | 156,396 |
Total long-term investments | 66,174 | 42,746 |
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 | 150,917 | 156,396 |
Total long-term investments | 66,174 | 42,746 |
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 | 31,295 | 34,395 |
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 | 31,295 | 34,395 |
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 | 47,489 | 34,600 |
Total long-term investments | 28,641 | 35,286 |
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 | 47,489 | 34,600 |
Total long-term investments | 28,641 | 35,286 |
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 | 61,371 | 69,101 |
Total long-term investments | 2,798 | 6,459 |
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 | 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 | 61,371 | 69,101 |
Total long-term investments | 2,798 | 6,459 |
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 | 0 |
Asset-backed securities | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Total short-term investments | 141 | 2,705 |
Total long-term investments | 39,628 | 40,652 |
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 | 141 | 2,705 |
Total long-term investments | 39,628 | 40,652 |
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 | 4,827 | 10,717 |
Total long-term investments | 3,403 | 3,639 |
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 | 4,827 | 10,717 |
Total long-term investments | 3,403 | 3,639 |
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 |