Wow, this is cool. And rather useful. At the moment Classcaster is running a mix of PHP and Perl that is getting difficult to manage. This may provide a solution.
Bricolage Now has PHP 5 Templating
Now anyone can natively execute PHP 5 code from a Perl application. Not only that, but the PHP 5 code can reach back into the Perl interpreter to use Perl modules and objects!