Skip to content

Which one is better for Symfony 5.3.6? PHP 7.4 or PHP 8.0.9 ? #42527

Answered by faizanakram99
karaka200 asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@abzolv
Comment options

@ahundiak
Comment options

Answer selected by karaka200
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants