Investing involves considering a lot of “what ifs.” When looking at the meteoric rise of tech stocks, investors wonder about the vast sums of money they could have amassed, if they just saw the opportunity at the time. The five following tech stocks all have enjoyed similar rides to the top, but investing in each would have had different results.

Apple: From Niche Computing To Reinventing Communication

Apple is the most valuable company in the world, soon to be the first trillion-dollar business ever. If you invested $10,000 in the company’s initial public offering (IPO) in 1980, you’d have close to $5 million today. The next company is relatively new but has made global financial waves.

Alibaba: China’s Global Tech Giant

There once was a time—not very long ago—when China and free market capitalism seemed like an unlikely pair. But, with a population of 1.3 billion and growing, consumers demanded tech services. Alibaba’s IPO was held just in 2014, but a $10,000 investment then would be worth $28,240— a 282% increase.

Amazon: The Second Most Valuable Company In The World

Amazon’s stock price has been riding high like a rocket ship for several years. The business has revolutionized how we shop and influenced how we consume entertainment. A $10,000 investment in 1997 at its IPO would be worth $11 million today. That’d buy a lot of toilet paper, paperbacks and Amazon Echos.

Google: From Search Engines To Digital Advertising

Now called Alphabet, Google is the search engine, map provider, and home assistant company we all use all the time. Most of Google’s revenue comes from advertising, which continues to fuel tech company growth. A $10,000 investment in 2004 would be worth over $400,000 today, a smaller but still insanely good return on investment.

Microsoft: Personal Computing Pioneer

The second oldest IPO on our list, Microsoft helped start the PC revolution in the 1980s. After slumping a bit in 2012—when the company posted its first-ever loss after failing to capitalize on mobile—Microsoft has bounced back as a profitable market leader with its cloud and business services. $10,000 back in 1986 would be worth $14 million today.