- You have not worked for 2.5 years. That is a big gap and you need to be explain it well. Unfortunately there is lot of competition these days and anyone with that large of a gap without a good and reasonable explanation will find it difficult.
- You have never seemed to hold a proper W2 job and if you now are looking for one, you have to make that case which is not easy. For example, what happened with that 3 months full time W2 and then unemployed ? Did you quit yourself ? Were you let go/laid off/fired ?
I think your biggest challenge is that you have technically "worked" for over a decade but seems like you don't have much to show for it unfortunately. This is where most employers may get a pause.
Good news it that PHP, vanilla JS/jQuery etc are very much in demand. You need to be more focussed in your approach and fix the negatives. Perhaps go back to one of our freelance clients and ask for a job if they are hiring ? You need to have someone vouch for you since you have been out there for a long time. Then go from there.
I hope this was helpful and not overly critical. Just trying to give it to you straight.