You can't do it.
At least nothing like that.
You must either put the PHP output into the <div> *AS THE PAGE IS CREATED* by your PHP page code *OR* you must use AJAX to go grab the content and use innerHTML to put it in place.
In either case, you can't "run" the PHP script in the browser. PHP must be run on the server and must send back *ONLY* HTTP responses (usually HTML, but could be binary response) to the browser.
I think you are badly confused.
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.