XML 21 R7.htm IDEA: XBRL DOCUMENT v3.19.1
CONDENSED CONSOLIDATED STATEMENTS OF CASH FLOWS - USD ($)
$ in Thousands
9 Months Ended
Apr. 30, 2019
Apr. 30, 2018
Cash flows from operating activities:    
Net loss $ (426,841) $ (209,792)
Adjustments to reconcile net loss to net cash provided by operating activities:    
Depreciation and amortization 55,740 36,013
Stock-based compensation 233,322 122,472
Change in fair value of contingent consideration (832) (3,371)
Amortization of debt discount and issuance costs 21,802 7,654
Other (1,837) (186)
Changes in operating assets and liabilities:    
Accounts receivable, net 16,734 (15,307)
Deferred commissions (24,819) (29,201)
Prepaid expenses and other assets [1] (5,095) (5,333)
Accounts payable 18,461 (6,407)
Accrued compensation and benefits (10,366) 3,700
Accrued expenses and other liabilities (31,180) (1,147)
Deferred revenue 206,735 170,709
Net cash provided by operating activities [1] 51,824 69,804
Cash flows from investing activities:    
Maturities of investments 460,563 147,868
Purchases of investments (324,581) (485,777)
Purchases of property and equipment (94,815) (46,089)
Payments for business combinations, net of cash and restricted cash acquired (19,017) (22,792)
Net cash (used in) provided by investing activities 22,150 (406,790)
Cash flows from financing activities:    
Proceeds from sales of shares through employee equity incentive plans, net of repurchases 67,277 68,186
Payment of contingent consideration associated with a business acquisition (1,040) 0
Payment of debt in conjunction with business combinations (991) (1,428)
Proceeds from issuance of convertible senior notes, net   563,937
Proceeds from issuance of convertible senior notes, net (75)  
Proceeds from issuance of warrants 0 87,975
Payments for convertible note hedges 0 (143,175)
Payment of offering costs 0 (85)
Net cash provided by financing activities 65,171 575,410
Net (decrease) increase in cash, cash equivalents and restricted cash [1] 139,145 238,424
Cash, cash equivalents and restricted cash—beginning of period [1] 307,098 139,497
Cash, cash equivalents and restricted cash—end of period [1] 446,243 377,921
Restricted cash [1],[2] 1,124 1,132
Cash and cash equivalents—end of period 445,119 376,789
Supplemental disclosures of cash flow information:    
Cash paid for income taxes 26,731 8,038
Supplemental disclosures of non-cash investing and financing information:    
Issuance of common stock in connection with business combinations 103,305 63,780
Purchases of property and equipment included in accounts payable and accrued liabilities 11,671 9,285
Vesting of early exercised stock options 157 570
Convertible senior notes offering costs included in accounts payable and accrued liabilities $ 0 $ 425
[1]
During the first quarter of fiscal 2019, we adopted Accounting Standards Update ("ASU") No. 2016-18, which requires that the statement of cash flows explain the change during the period in the total of cash, cash equivalents and restricted cash. We adopted the standard retrospectively for the prior period presented. Our adoption of ASU 2016-18 did not have any significant impact on our condensed consolidated statements of cash flows.
[2]
Included within other assets—non-current in the condensed consolidated balance sheets.