php4 vs php5 – Key features added in php 5

Posted by Raju Sykam on Dec 16th, 2009 and filed under blog, php, web. You can follow any responses to this entry through the RSS 2.0. You can leave a response or trackback to this entry

One of the questions you face in interview on PHP  is  about the key features added in PHP 5.? I have not found any single  page on web which lists the key features introduced in php5. so here is the list.

php 5

php 5

The final release of PHP 5 was announced on 13 July 2004.(as per php.net news archives)

Some of the key features of PHP 5 include:

  • The Zend Engine II with a new object model and dozens of new features.
  • XML support has been completely redone in PHP 5, all extensions are now focused around the excellent libxml2 library (http://www.xmlsoft.org/).
  • A new SimpleXML extension for easily accessing and manipulating XML as PHP objects. It can also interface with the DOM extension and vice-versa.
  • A brand new built-in SOAP extension for interoperability with Web Services.
  • A new MySQL extension named MySQLi for developers using MySQL 4.1 and later. This new extension includes an object-oriented interface in addition to a traditional interface; as well as support for many of MySQL’s new features, such as prepared statements.
  • SQLite has been bundled with PHP. For more information on SQLite, please visit their website.
  • Streams have been greatly improved, including the ability to access low-level socket operations on streams.

Did I missed anything? or went wrong? if so, please let me know by commenting here.

Popularity: unranked [?]

2 Responses for “php4 vs php5 – Key features added in php 5”

  1. 1
    Marcus says:

    but, do you recommend using php 5? This “new” version was introduced 6 years ago, so do you think is time for everyone to move to php 5?

  2. 2
    Raju Sykam says:

    Well, my post intention is to only discuss the features added to PHP 5 version. I belive that most are using version 5 only. so no need of asking again to migrate to php 5. however, if someone/some hosting servers are using php 4 , its better to move to PHP5.

Leave a Reply