apache browser javascript php server-side

Server-side web browser for PHP?

If you wanted to re-create the DOM server-side and manipulate it in PHP, how would you choose to go about it?

I’m looking for a fast, multi-user complete server-side web browser that can interface with PHP and run complete Javascript.

Like Jaxer but something I can use with PHP… an extension would be fine, or even an Apache mod.