3 ms·
We (https://judson.biz https://judson.biz) switched to PHP7 in production last month. I need to review the git commits, but our modern (~2yr old, running PHP 5.
by Judson 11y ago
We (https://judson.biz https://judson.biz) switched to PHP7 in production last month. I need to review the git commits, but our modern (~2yr old, running PHP 5.6) customer frontend and admin backend were very close to production-ready without any work.
Our 10 year old inventory/vendor backend that relied on the (now removed) mysql_* calls needed to be shimmed[0].
Our largest benefit was a significant drop (50%+) in memory usage when allocating lots of objects (which we do when pre-fetching ORM relationships), and a significant reduction (40%, 100-200ms) in render latency when rendering many partial product templates.
Edit: One thing that did bite us post-rollout, which didn't show up in development was this php7-fpm bug[1].
[0]: https://github.com/dshafik/php7-mysql-shim https://github.com/dshafik/php7-mysql-shim
[1]: https://github.com/php/php-src/pull/1720 https://github.com/php/php-src/pull/1720