With this talk, I want to present PHP 7, the most recent version of the language, and present some of the benefits and drawbacks of using it in production at this point in time (Q1 2016).
is NULL ➤ When overriding, child's method must match return type declaration of the parent. If parent does not define the type, the child method may define it.
Useful for classes that don’t need to be documented ➤ Useful for classes that are used once during execution ➤ Supports use of traits ➤ Reflection works with ReflectionClass::isAnonymous()
returned from within a generator ➤ Values can be fetched through the Generator::getReturn() method, which may only be used once the generator has finishing yielding ➤ Useful for the client code executing the generator. Instead of forcing the client to check whether the final value has been yielded, and being able to handle that value specifically.
compatible with PHP7 ➤ https://wiki.php.net/phpng-upgrading ➤ zend_rsrc_list_entry => zend_resource ➤ ZEND_FETCH_RESOURCE() => zend_fetch_resource() ➤ IS_BOOL => IS_TRUE and IS_FALSE ➤ and MUCH MORE ➤ https://github.com/gophp7/gophp7-ext/wiki/extensions-catalog