I want to upgrade
Magento 2.2.6. During the upgrade,it shows php version error. If i upgrade it then it does not support to 2.2.6. kindly suggest the version which will support both.
I you check system requiement for both magento 2.2 and 2.3, PHP ~7.1 will work for both.
You can check for magento 2.3 : https://devdocs.magento.com/guides/v2.3/install-gde/system-requirements-tech.html
You can check for magento 2.2 : https://devdocs.magento.com/guides/v2.2/install-gde/system-requirements-tech.html