My Philippine Passport Will Expire In 4 Months, I Am Currently In Dubai, Can I Still Travel To Philippines?

I’ve heard that green Philippine passport are still valid till the expiration date, so I have the impression that I can still travel to the Philippines with a passport which has still 4 months before it expires, but my question is will I be able to travel back to Dubai (after a month vacation) with the same passport (only 3 months left before it expires) with valid Dubai residence visa?