Forum Moderators: coopster

Message Too Old, No Replies

PHP 7.x

         

Peter_S

11:56 am on Mar 5, 2018 (gmt 0)

5+ Year Member Top Contributors Of The Month



Hi
(just being bored and depressed)

There are always lot of talks about HTTP/2 and how it improves performances of websites. But another revolution was the release of PHP 7, which boosted performances of dynamically generated pages. I know there is nothing new, since PHP 7 was released in December 2015, but I am still surprised to see how many webmasters are still running under PHP 5.x. So if you didn't yet make the switch, I greatly encourage you to do it, your pages will generate much faster, you'll improve your TTFB and First paint.
(the bottleneck can still be your database access, and network of course, all depends how your pages are coded too, but speed improvements are always welcome)

Beware that there are some backward incompatibilities between PHP 7.x and PHP 5.x, but not a big deals, and all these incompatibilities are about functions which have been depreciated years earlier.

I am myself running PHP 7.3-dev (yes I know you are not supposed to run a development version on a production site, but I no longer mind about anything), and it's again faster than PHP 7.2.

That's all folks,

robzilla

6:49 pm on Mar 5, 2018 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Definitely doesn't hurt to upgrade, assuming you have no compatibility issues, but I've found it's faster mostly with larger or more complex codebases, like WordPress, Magento or PHP frameworks -- all things I don't generally use myself. Most of my code is custom and not very complicated, and I didn't really see things get faster after the upgrade; not noticeably anyway, but it probably did a little bit.

(If you're truly depressed or burned out, maybe seek out some guidance.)

TravisDGarrett

10:35 pm on Mar 7, 2018 (gmt 0)



I no longer mind about anything

Don't say that.

TravisDGarrett

10:39 am on Mar 18, 2018 (gmt 0)



Are you still here, (and alright) Peter_S ?

Travis

2:17 pm on Mar 28, 2018 (gmt 0)

5+ Year Member Top Contributors Of The Month



May be someone should check on Peter_S

ergophobe

5:52 pm on Apr 8, 2018 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Well.... since we all just go by nicknames, it's hard to check on anyone if they don't check in here. You can always send a personal message though

Travis

6:46 pm on Apr 8, 2018 (gmt 0)

5+ Year Member Top Contributors Of The Month



Yes, I did it, no answer yet.

ergophobe

5:16 pm on Apr 9, 2018 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



All we can do is hope then. It is troubling to see someone post about depression (even if it seems a bit cavalier) and then drop off the forums. I wish there were a way to reach out.

robzilla

10:38 pm on Apr 9, 2018 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



He's taken a break before [webmasterworld.com].

keyplyr

12:15 am on Apr 10, 2018 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Maybe he's one of the incompatibilities with PHP 7.