The following code makes binary diff of two archives.
<?php $old_version = 'my_script_1.0.tgz';$new_version = 'my_script_1.1.tgz';xdiff_file_diff_binary($old_version, $new_version, 'my_script.bdiff');?>