A magnitude-5.1 earthquake hit the Philippines on Tuesday, according to the Philippine Institute of Volcanology and Seismology.