Which one is better for Symfony 5.3.6? PHP 7.4 or PHP 8.0.9 ? #42527
-
I'm new to the Symfony. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
It is always better to use latest PHP versions in order to use latest language features. PHP 8 provides native union types, native attributes, match operator, constructor promotion and more. These shiny new features increase overall Developer experience and also help in writing better code. I see no reason to use an old PHP version when u can use the latest version. You can read more about it here Supporting old versions of PHP is a necessity for libraries and not for end user projects. By the way, Symfony 5.3 works with any PHP version greater than or equal to 7.2.5. |
Beta Was this translation helpful? Give feedback.
It is always better to use latest PHP versions in order to use latest language features.
PHP 8 provides native union types, native attributes, match operator, constructor promotion and more. These shiny new features increase overall Developer experience and also help in writing better code. I see no reason to use an old PHP version when u can use the latest version.
You can read more about it here
https://stitcher.io/blog/new-in-php-8
Supporting old versions of PHP is a necessity for libraries and not for end user projects.
By the way, Symfony 5.3 works with any PHP version greater than or equal to 7.2.5.