most ordinances have limited penalty range such as fine or minimal imprisonment. but generally, you can get an idea that it would depend, as the process is governed by the Local Government Code, thus:
SEC. 56. Review of Component City and Municipal Ordinances or Resolutions by the Sangguniang Panlalawigan. - (a) Within three (3) days after approval, the secretary to the sanggunian panlungsod or sangguniang bayan shall forward to the sangguniang panlalawigan for review, copies of approved ordinances and the resolutions approving the local development plans and public investment programs formulated by the local development councils.
(b) Within thirty (30) days after receipt of copies of such ordinances and resolutions, the sangguniang panlalawigan shall examine the documents or transmit them to the provincial attorney, or if there be none, to the provincial prosecutor for prompt examination. The provincial attorney or provincial prosecutor shall, within a period of ten (10) days from receipt of the documents, inform the sangguniang panlalawigan in writing of his comments or recommendations, which may be considered by the sangguniang panlalawigan in making its decision.
(c) If the sangguniang panlalawigan finds that such an ordinance or resolution is beyond the power conferred upon the sangguniang panlungsod or sangguniang bayan concerned, it shall declare such ordinance or resolution invalid in whole or in part. The sangguniang panlalawigan shall enter its action in the minutes and shall advise the corresponding city or municipal authorities of the action it has taken.
(d) If no action has been taken by the sangguniang panlalawigan within thirty (30) days after submission of such an ordinance or resolution, the same shall be presumed consistent with law and therefore valid.
SEC. 57. Review of Barangay Ordinances by the sangguniang panlungsod or sangguniang bayan. - (a) Within ten (10) days after its enactment, the sangguniang barangay shall furnish copies of all barangay ordinances to the sangguniang panlungsod or sangguniang bayan concerned for review as to whether the ordinance is consistent with law and city or municipal ordinances.
(b) If the sangguniang panlungsod or sangguniang bayan, as the case may be, fails to take action on barangay ordinances within thirty (30) days from receipt thereof, the same shall be deemed approved.
(c) If the sangguniang panlungsod or sangguniang bayan, as the case may be, finds the barangay ordinances inconsistent with law or city or municipal ordinances, the sanggunian concerned shall, within thirty (30) days from receipt thereof, return the same with its comments and recommendations to the sangguniang barangay concerned for adjustment, amendment, or modification; in which case, the effectivity of the barangay ordinance is suspended until such time as the revision called for is effected.
SEC. 58. Enforcement of Disapproved ordinances or Resolutions. - Any attempt to enforce any ordinance or any resolution approving the local development plan and public investment program, after the disapproval thereof, shall be sufficient ground for the suspension or dismissal of the official or employee concerned.