PHP 5.4 aspires to elegance

NEW YORK — 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.

Would you recommend this article?

Share

Thanks for taking the time to let us know what you think of this article!
We'd love to hear your opinion about this or any other story you read in our publication.


Jim Love, Chief Content Officer, IT World Canada

Featured Download

Featured Articles

Cybersecurity in 2024: Priorities and challenges for Canadian organizations 

By Derek Manky As predictions for 2024 point to the continued expansion...

Survey shows generative AI is a top priority for Canadian corporate leaders.

Leaders are devoting significant budget to generative AI for 2024 Canadian corporate...

Related Tech News

Tech Jobs

Our experienced team of journalists and bloggers bring you engaging in-depth interviews, videos and content targeted to IT professionals and line-of-business executives.

Tech Companies Hiring Right Now