Tesla reported first-quarter earnings on Wednesday that beat analysts' estimates even as revenue came in weaker than expected. The shares rose about 4% in extended trading.

Here's how the company did, compared with estimates from analysts polled by LSEG: