top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What are the differences between PHP3 and PHP4 and PHP5 ? what is advance thing in php6?

+3 votes
1,435 views
What are the differences between PHP3 and PHP4 and PHP5 ? what is advance thing in php6?
posted Mar 24, 2014 by Pankaj Deshmukh

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

2 Answers

+1 vote

Find few differences between PHP3 and PHP4 and PHP5. PHP6 is yet to come and difficult to say advancement -

A. PHP3 is oldest stable version and it was pure procedural language constructive like C
B. Where as PHP4 have some OOPs concept added like class and object with new functionality
C. and in PHP5 approximately all major oops functionality has been added along with below thing
1. Implementation of exceptions and exception handling
2. Type hinting which allows you to force the type of a specific argument
3. Overloading of methods through the __call function
4. Full constructors and destructors etc through a __constuctor and __destructor function
5. __autoload function for dynamically including certain include files depending on the class you are trying to create.
6. Finality : can now use the final keyword to indicate that a method cannot be overridden by a child. You can also declare an entire class as final which prevents it from having any children at all.
7. Interfaces & Abstract Classes
8. Passed by Reference :
9. An __clone method if you really want to duplicate an object
10. Numbers of Functions Deprecated or removed in PHP 5.x like ereg,ereg_replace,magic_quotes, session_register,register_globals, split(), call_user_method() etc

answer Mar 26, 2014 by Salil Agrawal
0 votes

The current stable version of PHP is PHP 5.4.11 still waiting for PHP6 with unicode handlig thing .

There are lot of difference among PHP3 and PHP4 and PHP5 version of php so difference mean oldest version have less functionality as compare to new one.

Check the following links -
http://www.webmaster-talk.com/threads/78717-Differences-between-PHP4-and-PHP5

answer Mar 25, 2014 by Yogeshwar Thakur
Similar Questions
0 votes

Anybody have phpdocumentor running with PHP5.4? I'm convinced that the errors my copy is throwing are due to e_strict, but I've confirmed that I have the right ini file ( all the needed extensions load ) and I'm getting error_reporting showing 22527 with e_strict off and 24575 with e_strict on - so at least it is changing the setting?

Once again I'm wasting hours getting something which I have had running fine on the older servers to actually work in a new setup. In this case phpdocumentor seems to suggesting *IT* needs PHP5.3 but the main script also switched e_strict off anyway, so 5.4 should work as well?

...