2 ms·
> Languages aren't "fast" or "slow", it's programs that can be fast or slow. We can say that "C++ is faster than PHP", because most, if not all, programs using
by acangiano 17y ago
> Languages aren't "fast" or "slow", it's programs that can be fast or slow.
We can say that "C++ is faster than PHP", because most, if not all, programs using the same algorithms will run faster when written in C++ and compiled to native code.
> If a higher-level language lets you implement a smarter algorithm, your program will run faster.
PHP is generally easier to master than C++, but both are high level enough to provide adequate tools to write efficient algorithms with comparable amount of effort, provided one is competent with the language at hand.