K
K
Kim_Soal2018-03-20 18:00:28
PHP
Kim_Soal, 2018-03-20 18:00:28

Service online translation of new syntax into obsolete, php?

For js, there is a liba and a service, with a website and the ability to write on one standard and get code on another.
In php, some things become obsolete, some are supplemented, the syntax changes.
Is there a similar service for php to translate syntax from one version to another, similar to the one used for various js standards.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Entelis, 2018-03-20
@Kim_Soal

Common sense says no, because
a) new versions sometimes have functionality that is not supported in old ones, so it may not be physically possible to rewrite new code in the old way.
b) in general, no one needs this task: the project uses a specific version of php + periodically solves the question "how to adapt the old code to the new version of php" (well, or not solved hehe).
I honestly tried to come up with a situation for someone who might need to run code written for the new version on the old one - I only thought of a legacy project that wants to use the fruits of open source, but cannot.
Well, now it's time to update your code to the latest versions of the language.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question