Update compare.php

Describe variable types, access, and functions.