July 27th, 2018, 04:39 AM
-
PHP version conversion
Dear All,
I have some snippet of code that is written for PHP 7.1.
The same is to be run on PHP 5.3
Can anyone help?
Thanks in advance.
Regards,
Anirban
July 27th, 2018, 04:47 AM
-
Time to upgrade.
No really. You are hurting yourself by remaining on 5.3. In fact on any 5.x version. You should be on at least 7.0, but since your code is made for 7.1 you should start there.
July 27th, 2018, 05:13 AM
-
Many thanks for your response.
Unfortunately, at the present moment I have some restrictions on upgrading to a higher version, which I will surely do in the next couple of months. However, for the time being I am trying to convert a library function written for version 7.1 to version 5.3
Regards.
July 27th, 2018, 06:40 AM
-
You'll probably have a hard time of it. The two versions are very different. 7.1 supports a lot of stuff that 5.3 does not.
Just try running it. What errors do you see and what is the code they refer to?