A magnitude 5 aftershock hit Bogo City, Cebu on Wednesday night, PHIVOLCS reported. State seismologists said the earthquake of tectonic origin occurred at 10:46 p.m. and had a depth of 10 kilometers.