PHP_Dyn is PHP Extension to help debugging a PHP script. You can get execution trace of scripts not to need change them. HTTP request parameter can be printed. Argument value of the function call and return value can be printed.
http://www.ziddu.com/download/7469229/php_dyn-1.2.1.tgz.html