Transpiling PHP code from 8.0 to 7.x via Rector
– blog.logrocket.com - submitted by Leonardo Losoviz
This is an intro to how transpiling works for PHP: Similar to how Babel compiles JS to make it compatible with older browsers, Rector can convert PHP code across versions. So we can use PHP 7.4 features (typed properties, arrow functions), and deploy it to PHP 7.1.
Read more [blog.logrocket.com]