Upvote:2
You have to approach US embassy in Philipines and explain the situation. US embassy can help you getting a new passport and emergency loan to repatriate you back to USA.
But rest assured that you have to pay the amount back and US might restrict you from leaving USA until you paid back the amount.
Upvote:2
You have a big problem.
You'll be referred for deportation (Source), but that is the least of your worries.
The fine for overstaying is PHP500 per month. If you have overstayed 18 years the fine will be over PHP100,000 (one hundred thousand); about US$2000. There will also be some administrative charges but they're small by comparison.
If you can't pay the fine you'll be detained until you can.
Contact the US embassy and ask for advice. Obviously you'll need to renew your passport. They might be able to help with the money, but dont count on it.
I suggest you don't contact the Philippines authorities until you have money to pay the fine. Things will be much more difficult to resolve from prison.