0

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 ?

asked Jul 28, 2016 at 17:01
2
  • I suggest to you PHP7. PHP7 is much faster then other version and also Magento2 is stable working with PHP7. Commented Jul 28, 2016 at 17:43
  • as compared to php 5 , php7 is much faster with magento2.1. goivvy.com/blog/magento-2-php7-25-performance-increase Commented Jul 29, 2016 at 12:00

1 Answer 1

3

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.

answered Jul 28, 2016 at 17:06
3
  • hey, @ryan Hoerr, IS php7 best for magento-2.1.6? Commented Aug 16, 2017 at 14:44
  • PHP 7 is always better than PHP 5, unless your code isn't compatible. PHP 7 will actually be required for Magento 2.2 and above--they're dropping support for PHP 5 completely. Commented Aug 16, 2017 at 14:55
  • Yes, i have checked it for 2.2. it working on supports 7.0.2, 7.0.4, and 7.0.6 or later Commented Aug 16, 2017 at 15:04

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.