There are some difference between PHP4 and PHP5 that are as following:-
- In PHP5 abstract classes are used but not used in PHP4.
- In PHP5 interfaces are used but not used in PHP4.
- In PHP5 visibility are used but not used in PHP4.
- In PHP5 magic methods are used but not uesd in PHP4.
- In PHP5 typehinting are used but not used in PHP4.
- In PHP5 cloning are used but not used in PHP4.
- In PHP5 construtor are written as __construct keyword but in PHP4 are written as class name.