I got a masters at one U, and was ensconced at another U for the Ph.D. by then. Actually that was the year that I started at the new U, and they told me, 2 weeks before I started, that they expected me to take and pass the Ph.D. qual exam. Which was in 2 weeks.
I did, but it was not a fun 2 weeks.
That was ... er ... ah ... 28 years ago.
I've used the Ph.D., outside of press releases and presentations, mebbe a few times since then. Has nothing to do with my career.
My advice to people considering Ph.D.'s ... if you seriously want to be called Dr., then sure. If you want to pursue tenure track, have your head examined, and then sure. Just remember, similar odds to lottery games. If you want to do industrial research, sure.
I actually wrote about this recently, with some observations about Ph.D.s in industry[1].
More seriously, I do occasionally reflect upon the opportunity cost, the lost earning time, lost wages, the later start to my family, ...
[1] https://scalability.org/2018/07/typecasting-and-the-trust-us...
another note: I can't really afford an MBA without going into substantial debt. My CS masters is completely covered by my company
Advice: Don't waste your time with academics and the petty politics of university faculties. Go create; market and sell; make money.
[added] Up to the end of college I had been writing code since high school, fully financing my studies with software sales and royalties.