3 ms·
Speed and lower memory utilization are great, but PHP7 really is just full of goodies: * Scalar type declarations * Return type declarations * null coalescin
by arenaninja 10y ago
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
- TazeTSchnitzel 10y ago> * 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.
- arenaninja 10y ago25 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