Just extend it to any immigration office in the Philippines. . just make sure you do it 2 days before it expired otherwise you’ll get a penalty. Your first extension will be good for another 21 days , your second extension will allow you to stay for 3 months.
You are only allowed to stay in the Philippines for a total of one year. . .