Views PHP: Getting "Available Variables"
The variables (or field) that you need to use as Available Variables must be before the Views PHP variable. Besides that install Devel module and use kpr($row) or kpr($view) or kpr($data) to get the available properties of these variables.
Also in "Output" section you can use var_dump or print_r to print available variables.