What is the difference between PHP4 and PHP5?

Discussion in 'Website Development & Design' started by beingchinmay, Aug 21, 2015.

  1. beingchinmay

    beingchinmay
    uix_expand uix_collapse
    New Member

    Joined:
    Aug 4, 2015
    Messages:
    10
    Likes Received:
    1
    PHP4 cannot support oops concepts and Zend engine 1 is used.
    PHP5 supports oops concepts and Zend engine 2 is used.
    Error supporting is increased in PHP5.
    XML and SQLLite will is increased in PHP5
     
  2. Marissa C

    Marissa C
    uix_expand uix_collapse
    New Member

    Joined:
    Aug 21, 2015
    Messages:
    1
    Likes Received:
    0
    PHP a server-side scripting language that has its main implementation in web development. However, it can be used as a general-purpose programming language. PHP4 and PHP5 are two versions of PHP. PHP4 was released on May 22, 2000. On July 13, 2004, PHP5 was released. It was powered by Zend Engine II. It was an improvement over PHP4 and included various new features.
     
  3. Alan Ron

    Alan Ron
    uix_expand uix_collapse
    Member

    Joined:
    Jul 29, 2015
    Messages:
    85
    Likes Received:
    7
    • In PHP4, Constructor have same name as the Class name. In PHP5, name Constructors as _construct and Destructors as _destruct().
    • In PHP5, we can declare a class as abstract.
    • PHP5 allows you to declare a class or method as final.
     
  4. youngkia1

    youngkia1
    uix_expand uix_collapse
    Member

    Joined:
    Mar 17, 2010
    Messages:
    398
    Likes Received:
    8
    PHP4 is more of a procedure language while PHP5 is object oriented. PHP4 was powered by Zend Engine 1.0, while PHP5 was powered by Zend Engine II. In PHP4, everything was passed by value, including objects. Whereas in PHP5, all objects are passed by reference.
     
  5. seemasingh

    seemasingh
    uix_expand uix_collapse
    New Member

    Joined:
    Aug 20, 2015
    Messages:
    5
    Likes Received:
    0
    Php is server side scripting language that has its main implementation in web development. PHP is an open source, server-side, HTML embedded scripting language.
     
  6. mishraraj2603

    mishraraj2603
    uix_expand uix_collapse
    Member

    Joined:
    Dec 25, 2014
    Messages:
    76
    Likes Received:
    3
    Hi,
    In php5 a new error level defined as E_STRICT
    PHP4 uses Zend engine 1.0 as a parser.PHP5 uses Zend engine 2.0
     
  7. anirban09P

    anirban09P
    uix_expand uix_collapse
    New Member

    Joined:
    Dec 19, 2013
    Messages:
    28
    Likes Received:
    0
    PHP5 is a lot different than PHP4. With the vastly improved Object Oriented model in PHP5, PHP is now a lot closer to a fully fledged object orientated programming language and looks more like ASP.NET now.
     

Share This Page