Re:Ewww, You Use PHP? (2010)
by shylor on Friday October 14, 2016 @10:06AM
(#12708122)
It would be interesting to see what PHP 7's speed can do for them.
[ Parent
| on HN ]
Re:Ewww, You Use PHP? (2010)
by arenaninja on Friday October 14, 2016 @10:26AM
(#12708267)
Speed and lower memory utilization are great, but PHP7 really is just full of goodies:
* Scalar type declarations
* Return type declarations
* null coalescing operator (the real MVP)
* spaceship operator
* introduced Throwable, big improvement to error handling
* removed PHP4 style constructors
* removed the old mysql extension
Most modern PHP codebases should be able to upgrade from PHP5.6 to PHP7 seamlessly
Re:Ewww, You Use PHP? (2010)
by TazeTSchnitzel on Friday October 14, 2016 @12:37PM
(#12709237)
> * null coalescing operator (the real MVP)
I'm glad someone appreciates it that much! Since helping introduce it, I haven't found as much use for it as I expected.
Re:Ewww, You Use PHP? (2010)
by arenaninja on Friday October 14, 2016 @12:50PM
(#12709334)
25 uses in my current codebase vs 5 for spaceship
It's not so much about the count though, but the beauty of it:
$id = trim($options[$longCamelCaseID]['abcdefg'] ?? "");
A real godsend