Corrected the logic in the php versions read guess procedure