PHP 7 released, go forth and code!


(Greg Robson) #1

Finally!
http://php.net/archive/2015.php#id2015-12-03-1

Depending on the application it’s 2–3 times quicker with about half the memory usage. For those who like reading up on the internals of the changes, this article on the new array storage may be of interest: PHP’s new hashtable implementation

It’s worthy checking out some of the internal changes before using it on your own code! http://php.net/manual/en/migration70.php

Hopefully 7.1, 7.2 etc will follow quickly now the main bulk of the changes have been done and better platform exists for the future.


(Steve Pitchford) #2

A sincere question - as someone who works in domains where PHP may not be the most appropriate technology selection, I have perceived from afar that node was starting to take a lot of the PHP market.

Has PHP 7 got enough to stem the exodus?


(Greg Robson) #3

I think so - at a guess I think usage is fairly static, there has been a lot of waiting for PHP7.

There are plenty of packages for integrations: https://packagist.org/ - A lot of SAAS providers have PHP libraries for their APIs.

There are also applications/frameworks that are powerful, supported and reliable: Laravel, WordPress, Joomla, Drupal, Symfony Framework etc. They’re not going anywhere any time soon and have large user bases.

Standards have been established by the PHP-FIG - covering coding standards, messaging and logging interfaces and other key areas like auto-loading. Entirely optional, but projects seem to be following these as a well-discussed and accepted set of standards.

PHP has a very low barrier to entry. It’s easy to understand how scripts run in relation to the environment (unlike Ruby which requires some kind of voodoo to get it working on Windows!). There are also masses of resources available online for learning the language. In particular Laracasts has become something that is not just for Laravel but PHP as well (it’s has now branched off to cover Vue.js and Gulp as well!)

I think the future is looky rosy for PHP… as part of a diverse range of technologies :smile:


(Daniel Hollands) #4

I escaped from PHP a year ago, and I’m quite happy in Ruby-land for the moment, but if I’m honest, I left just as things in PHP were getting interesting. The PHP Framework Interop Group and their PSR standards have allowed for the awesome package manager Composer to make PHP a far better place to be than it ever was before.

All that said, I hope to never use it again - but that’s just me.


(Greg Robson) #5

It’s odd, when using Laravel it’s quite rare that I use the PHP functions. Most of the time I’m writing business logic and using framework code for validation and database read/writes.

At some point they do need to sort out the function naming. Although that’s no easy thing to transition.

I do envy Ruby’s consistency at times @LimeBlast!


(Dan Course) #6

Same here, in Lara-land quite a lot of iteration, helpers and filters are handled by Laravel. The weird inconsistent PHP method naming barely comes up.

So am I moving yet. Nope, Laravel5 has kept me well off the nodejs crack.

However, in the University land, I am being rather nudged towards… Sharepoint! Garh;;; the horrors???>!?>


(Greg Robson) #7

You have my deepest sympathies. :frowning: That’s being nudged towards a cliff edge!


(Dan Course) #8

Thank you thank you thank you :’( sobs


(Dan Course) #9

So PHP7 sounds exciting, but I doubt we’ll adopt it until it’s been through the mill a few times and is added to the standard CentOS (http://distrowatch.com/table.php?distribution=centos).

Currently the PHP version is pinned to 5.4, which is frustrating because Laravel 5.1 requires 5.6 min!