xdiff is an extension to do binary and text differences WWW: http://pecl.php.net/package/xdiff/