Typically performance will be better with a DSO, since the PHP interpreter runs within the webserver process. As a CGI interpreter, an additional process(es) are spawned with each request. However, as a CGI, PHP can be used as a standalone language interpreter (like Perl).
As far as compatability and portability, there's only a handful of functions (at least to the best of my knowledge) which are dependent on the build method.