A friend of ours has recently tried this, they married here and applied for FLR, the application was submitted but rejected because she was here on a visit visa. The fee was taken for the application but not refunded.
She has now returned to the Philippines and has submitted a spouse visa application, given that there have been recent visa success on this forum with decisions taken a few days or weeks, they have been waiting nearly 6 weeks and still no decision yet.
Your only option is to go home and apply from there and hope your overstay does not affect your application.![]()