How to code multiple values field in Views PHP?
Structurally, your code looks fine, it's probably because 

$row-&gt;view = &lt;div id="views-view--view-name"&gt;&lt;div&gt;5&lt;/div&gt;&lt;/div&gt; basically the 5 has HTML tags around it. 

so &lt;div id="views-view--view-name"&gt;&lt;div&gt;5&lt;/div&gt;&lt;/div&gt; does not equal 5

You can use the PHP strip_tags() function to get rid off the tags. 

if (strip_tags($row-&gt;view) &gt;= 5 AND strip_tags($row-&gt;view_1) &gt;= 5 AND strip_tags($row-&gt;view_2) &gt;= 80) { 


So try this: 

&lt;?php

$a = strip_tags($row-&gt;view);
$b = strip_tags($row-&gt;view_1);
$c = strip_tags($row-&gt;view_2);

if ($a &gt;= 5 AND $b &gt;= 5 AND $c &gt;= 80) { 
    echo "Amazing person";
}
elseif ($a &gt;= 3 AND $b &gt;= 3 AND $c &gt;= 70) { 
    echo "Good person";
} 
elseif ($a &gt;= 1 AND $c &gt;= 60) { 
    echo "Interesting person";
}
else {
    echo "Content needed";
}
?&gt;


PS: no need to have anything for value code return $data;.