The right time is not too early, nor too late. Thats kind of obvious, but it needs to be said because too early is a version that is too recent and too late is a version that is too old. So you may wonder when it is the right time for us to upgrade. The right time is not too early not too late. Thats kind of obvious but it needs to be said because too early is a version that is too recent in too late is a version that is too old. So what is a version that is too recent? Every time a new release is made, as I said, there are issues. So if you wait sometime before you upgrade, you give time to the core developers to realize there are issues, and so, they can fix those issues and they may release a new version that is more stable, has less issues, and it is better for you to upgrade then. For instance, if you wait for a month after the latest release, you give enough time to fix a lot of issues. For instance, PHP 8.1.4 was released on March 17, 2022. So if you wait one month, if you wait until April 17, 2022 that version will be more stable, so its safer for you to upgrade. Still you may not need all the features, benefits, and latest version. you may be able to wait some more time until that version gets more stable, and that is even safer. But you cannot delay too much the upgrade, so there is another criterion for you to decide when it is right to upgrade to a new version that is not too old. So that criteria, what I suggest is that you find the latest stable release that was still published by the core developers and use the same criteria of waiting one month after that stable release was made. So for instance PHP 7.4 29 was released on April 14 2022.
So if you have one month that gives may 14 2022. So then it is safer to upgrade to that latest release that is more stable than the latest that I have mentioned PHP 8.1.4 which is a version that was released recently, relative to the time of this recording. Still, you may have another problem which is: what can you do if you do not control the exact version that is installed in your server, the version of PHP or the a version of the operating system or the a version of web server, database server, and email server. All those components are important.
You need to use versions of those components and tools that are stable and do not cause issues to your application. So in that case, you should follow the recommendation that the hosting company or the operating system distribution company that controls whatever is the version that is used for each of those components in those distributions or in the server that you are using. So lets suppose that you use a Linux operating system like Ubuntu distribution, and you need to use similar criteria that I mentioned before regarding using a month of delay between the latest release and the time that you wait until you upgrade, okay?