Home >Backend Development >PHP Tutorial >Are all PHP's internal functions written in C, and are they the most efficient?

Are all PHP's internal functions written in C, and are they the most efficient?

WBOY
WBOYOriginal
2016-09-09 08:28:02843browse

Are all PHP’s internal functions written in C? Is it always the most efficient?

Reply content:

Are all PHP’s internal functions written in C? Is it always the most efficient?

  • Yes, it is written in C, no doubt

  • There is no highest efficiency, only higher efficiency

Each version will be improved in all aspects, so there is no highest, only higher. Safety/efficiency/speed, etc. will only get better and better

1. Of course, the bottom layer of PHP is written in C
2. High efficiency is relative, such as PHP5.x and PHP7.x. PHP7.X is definitely much more efficient than PHP5.X

Whether it is all C, you will know after reading the source code.
Don’t misunderstand that programs written in C language will be more efficient... It depends on the person...

The bottom layer of php is C

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn