There was no tsunami threat after the quake, the Pacific Tsunami Warning Center said.
Cebu City, located in the country’s central Visayas region, has a population of nearly 1 million, according to USGS.
The quake was at a depth of 10km and was located about 20km from the city of Bogo, the survey said, adding that an aftershock of magnitude 5.2 was also reported from the region.
There were no immediate reports of deaths or damage.