Analysts polled by Bloomberg forecast the company would earn $1.38 per share on sales of $6.96 billion.

"McDonald's global comparable sales remained solid for the quarter while overall results reflected the slowing global economy, persistent economic headwinds and the investments we've made to enhance restaurant operations and provide customers the everyday value they have come to expect from McDonald's," Chief Executive Don Thompson said.

Comparable store sales held up well during the three months ended June 30, improving 3.7 percent.Europe led that increase, with McDonald's citing strong trends in the U.K. and Russia, with France and Germany continuing to contribute to better top line figures.

Sales in the U.S. were also robust, up 3.6 percent, while same-store sales in the Asia Pacific grew modest 0.9 percent.

"As we begin the third quarter, global comparable sales for July are expected to be positive, but less than second quarter," Thompson said.