the php code isn't running when the browser is involved, it's just processing the text which it has been sent.
the php is responsible for sending the text.
i suspect you could have the table created with a div tag within the cell and javascript called by the onload() event to fill the div tag with the text. That way it's the last to load.
to see an example of div's being populated have a look at the source code for this page: http://www.hostultra.com/~data/layers.php
the business problem being sorted is quite different but the mechanism can be used.