Differentiate between PHP4 and PHP5 given below
S.No. | PHP4 | PHP5 |
1 | Not support Static methods | It support static method |
2 | constructor can have same class name | constructor have different class name |
3 | limited OPS support, not support visibility keywords (public, protected, private), not support interfaces or abstract classes. | Improved OOP support, support visibility keywords (public, protected, private), support for interfaces, abstract classes |
4 | slower performance | Improved performance with various optimizations and enhancements. |
5 | Use Mysql | Use Mysqli & PDO |
6 | Weaker security features | Enhanced security features |
7 | namespace not support | namespace support |