php do not be able to compare large int and float reliably.


$val1 = 0.2; $val2 = 0.2;
if($val1 < $val2){ echo 'it is true';}

one workaround for equal comparison is to cast the value to string type.


comparison of float value in PHP