Apple shares neared a record $400, a day after the world’s most valuable technology company posted blockbuster results and triggered a spate of brokerage upgrades. Apple’s climb brought the maker of the iPhone and iPad within shouting distance of Exxon Mobil’s market value of more than $400 billion despite the oil and gas producer raking in more than four times Apple’s annual revenue.

“We expect Apple will become the largest market cap company on the planet when the stock hits approximately $445, which is only about 13 percent away from aftermarket levels,” said Gleacher & Co analyst Brian Marshall, based on the assumption that Exxon shares remain flat. Apple shares rose to a high of $405 in after-hours trading on Tuesday.

Intel posted second-quarter revenue above expectations, defying investors’ concerns about slowing personal computer sales. Intel’s revenue in the June quarter was $13.1 billion, up 22 percent over the year-ago period and  above the $12.83 billion expected by analysts, according to Thomson Reuters I/B/E/S.

EBay reported better-than-expected quarterly results as the company’s main online Marketplace business showed signs of a turnaround and its PayPal unit continued to grow quickly. EBay said second-quarter net income was $283.4 million, or 22 cents per share. That compares to net income of $412 million, or 31 cents a share, in the same period a year earlier.

Apple updated its MacBook Air and Mac mini with next-generation processors and operating systems. The new MacBook Air went on sale starting at $999, with the latest generation of Intel Core i5 and i7 processors, the operating system Lion, and a backlit keyboard. The Mac mini was priced at $599, delivering up to twice the processor and graphics performance of the previous generation, the company said.