PHP 5.4 aspires to elegance

The newly released version PHP features performance improvements and syntax refinements

PHP, one of the most widely used languages for building websites, has been updated with a number of improvements to ease development and speed performance.

"Essentially, most of the new features don't radically change the language, just refine it," said Zeev Suraski, one of the principal contributors to PHP as well as CTO of PHP software vendor Zend Technologies. "What you could do before, you can do in an easier, more elegant way now."

For developers, the PHP syntax has been streamlined for easier usability. A new method, called Traits, will enable developers to reuse code. The array syntax has been simplified. Improvements have been added to allow PHP work better with the JSON (JavaScript Object Notation) data exchange format. PHP 5.4 includes native support for Asian languages, eliminating the need for programmers to compile a special version of PHP to present content in those languages.

Much work has also been done on this version PHP to improve performance. Thanks to some code refactoring, PHP can now support up to 40 percent more users on the same server. "We've reduced memory consumption. When you have a popular Web site, it's all about density--how many requests per second can your server take. Typically the real limiter is memory. By reducing memory consumption, you can increase density," Suraski said

PHP is used by approximately 5 million developers around the world, primarily for building Web pages with content that is routinely updated or changed, as well as for building Web applications. It is the sixth most widely used programming language worldwide, according to the most recent monthly estimate by the Tiobe Group.

In conjunction with this release, Zend also has released the third beta version of Zend Framework 2, which includes support for PHP 5.4. Zend is also testing a PHP hosted service, called the Zend Developer Cloud.

Joab Jackson covers enterprise software and general technology breaking news for The IDG News Service. Follow Joab on Twitter at @Joab_Jackson. Joab's e-mail address is Joab_Jackson@idg.com

Join the newsletter!

Or

Sign up to gain exclusive access to email subscriptions, event invitations, competitions, giveaways, and much more.

Membership is free, and your security and privacy remain protected. View our privacy policy before signing up.

Error: Please check your email address.
Keep up with the latest tech news, reviews and previews by subscribing to the Good Gear Guide newsletter.

Joab Jackson

IDG News Service
Show Comments

Father’s Day Gift Guide

Brand Post

PC World Evaluation Team Review - MSI GT75 TITAN

"I need power and lots of it. As a Front End Web developer anything less just won’t cut it which is why the MSI GT75 is an outstanding laptop for me. It’s a sleek and futuristic looking, high quality, beast that has a touch of sci-fi flare about it."

Most Popular Reviews

Latest Articles

Resources

PCW Evaluation Team

Luke Hill

MSI GT75 TITAN

I need power and lots of it. As a Front End Web developer anything less just won’t cut it which is why the MSI GT75 is an outstanding laptop for me. It’s a sleek and futuristic looking, high quality, beast that has a touch of sci-fi flare about it.

Emily Tyson

MSI GE63 Raider

If you’re looking to invest in your next work horse laptop for work or home use, you can’t go wrong with the MSI GE63.

Laura Johnston

MSI GS65 Stealth Thin

If you can afford the price tag, it is well worth the money. It out performs any other laptop I have tried for gaming, and the transportable design and incredible display also make it ideal for work.

Andrew Teoh

Brother MFC-L9570CDW Multifunction Printer

Touch screen visibility and operation was great and easy to navigate. Each menu and sub-menu was in an understandable order and category

Louise Coady

Brother MFC-L9570CDW Multifunction Printer

The printer was convenient, produced clear and vibrant images and was very easy to use

Edwina Hargreaves

WD My Cloud Home

I would recommend this device for families and small businesses who want one safe place to store all their important digital content and a way to easily share it with friends, family, business partners, or customers.

Featured Content

Product Launch Showcase

Don’t have an account? Sign up here

Don't have an account? Sign up now

Forgot password?