Still, what I hear from some PhD students is that even with decent pay, it's not a great career. The chances of getting tenure are tiny, academic freedom isn't what it once was, and if you enter the job market, the PhD mostly cost a lot of time without adding a whole lot of value. Unless it's in Machine Learning, maybe.