Exxon Mobil Corp.’s quarterly profit fell 18 percent from last year, but the oil and gas giant still made nearly $8 billion in three months.

Production increased slightly, but Exxon made significantly less money at refining.