PHP shouldn’t have much to do with what’s happening in the browser. I ran into a memory leak as well, but I think it’s related to either the Action Scheduler or PouchDB. If I stop running them on the page, then the app stays fairly stable at 141k.
Have you tried to selectively remove components on the page to see if memory stabilizes?