PHP 8.0 arrives with union types, JIT compilation. Major PHP upgrade also features named arguments and attributes, for including structured metadata in classes, functions, methods, and more. Two JIT compilation engines are included, Tracing JIT and Function JIT.
PHP 8.0, a major upgrade to the popular dynamic language for server-side web programming, is now available as a production release, featuring union types, named arguments, attributes, and Just-In-Time compilation.
Union types accept values of multiple different types. They allow passing arguments to a function based on the parameter name, rather than the parameter position. This makes the meaning of the argument self-documenting, makes arguments order-independent, and allows for arbitrarily skipping default values.
While PHP already supported two special union types (
Traversable), arbitrary union types were not supported by the language, which instead has leveraged phpdoc annotations. After generics, union types have been considered the largest “hole” in the PHP type declaration system.
Hire our Laravel, CodeIgniter, YII, Zend, Cake PHP, Core PHP developers for your custom web development projects. Choose best PHP Web Frameworks & get satisfactory results.
Looking to develop a PHP based website from scratch or revamp your existing website? **[HourlyDeveloper.io](https://hourlydeveloper.io/ "HourlyDeveloper.io")** has always been an industry leader for companies and business owners looking to hire...
Are you looking for a php web development company? ValueCoders is a leading software company with 16+ years of experience offering PHP website development services to global clients. 4200+ projects | 2500+ Clients| 450+ Experts.
Our dedicated PHP developers write bug-free and optimized code for custom PHP web development projects. Hire us today and get satisfactory results.
Looking to hire affordable yet experienced PHP developers? **[Hire Dedicated PHP Developer](https://hourlydeveloper.io/hire-dedicated-php-developer/ "Hire Dedicated PHP Developer")**, who can convert your idea to reality, within the stipulated...