Thanks for your question.
I assume you are a national of a non-EEA member stated country.
It is a condition of your visitor's visa that you must leave before the expiry of the visa which you have been granted. Usually it is limited to 6 months.
There is, I regret to say, no possibility of your applying for indefinite leave to remain (permanent resident) at the end of your visa. It is simply not permitted and, in fact, the only way you could stay for any length of time after your visa expires is if there are exceptional compassionate reasons why you should be granted further leave to remain (eg. Where to remove you would provably affect your health because of a serious and existing health condition).
If you wish to apply for ILR you must do so under the normal ways (eg. Either by a visa based on a family relationship (eg. Wife) or as a sponsored skilled worker (ie. Tier 2):-
It is very important that you do not overstay your visitor's visa because this could prejudicially affect any future application for a visa that you make.
I am very sorry it could not be better news.
If this has been useful please kindly click accept so that I may be rewarded for my time. If you do not click accept your money stays with the site and I do not receive any credit for the time I have taken to answer your question.
I will answer your follow up questions you may have.