There are lot of difference among these three version of php Php3 is oldest version after that php4 came and current version is php5 (php5.3) where php6 have to come Difference mean oldest version have less functionality as compare to new one like php5 have all OOPs concept now where as php3 was pure procedural language constructive like C In PHP5 1. Implementation of exceptions and exception handling Type hinting which allows you to force the type of a specific argument Overloading of methods through the __call function Full constructors and destructors etc through a __constuctor and __destructor function __autoload function for dynamically including certain include files depending on the class you are trying to create. 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. Interfaces & Abstract Classes Passed by Reference : An __clone method if you really want to duplicate an object Numbers of Functions Deprecated in php 5.x like ereg,ereg_replace,magic_quotes_runtime, session_register,register_globals, split(), call_user_method() etc Source: CoolInterview.com
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
There should not be any Spelling Mistakes.
There should not be any Gramatical Errors.
Answers must not contain any bad words.
Answers should not be the repeat of same answer, already approved.