Sadržaj
Difference between C++ and PHP :
S.No. C++ PHP
- C++ was developed by Bjarne Stroustrup in 1979. It is developed by Rasmus Lerdorf in 1994.
- It is an object oriented programming language. It is a server-side scripting language.
- There is method overriding and overloading. There is no method overloading, but methods and functions can have optional parameters.
- It is object-oriented compiled language. It is interpreted language.
- It is good for large and complex projects. It is good for small and medium projects.
- C++ is statically typed PHP is dynamically typed.
- It is mostly use to build system software. It is mostly used to build web application.
- Memory Management in C++ is Manual. Memory Management is System Controlled.
- It is more secure as compared to PHP. It is less secure as compared to C++.
- Extensions of C++ is .cpp. Extensions of PHP are .php, .php3, .php4, .php7.
- For example, a popular JavaScript engine V8 and most part of a popular database system MySQL are written in C++. For example, Facebook is initially written in PHP.