Question

I recently got a project in Magento 2.1 CE (from scratch). Although the officially recommended of PHP is 5.6, I am more inclined to go with PHP7.

I was looking for a Pros and Cons list of going with either of the PHP versions.

Any thoughts people ?

Was it helpful?

Solution

PHP 7

  • Pro: Much faster
  • Con: Possible bugs

PHP 5.6

  • Pro: More reliable
  • Con: Slower

That's pretty much all it comes down to. At this point, PHP 7 is fairly stable, every module you find for M2 should support it out of box, so you're not likely to run into any problems.

I wouldn't build a site on anything less than PHP 7.

Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top