Home >Backend Development >PHP Problem >Is php only 64-bit?

Is php only 64-bit?

藏色散人
藏色散人Original
2022-10-28 09:30:321743browse

php is not only 64-bit, but also 32-bit. The biggest difference between the two is the size of the process address space; the process address space of a 32-bit program is 4G, while a 32-bit program under Windows has 2G The address space belongs to the kernel, and the program actually only has 2G of available memory.

Is php only 64-bit?

The operating environment of this tutorial: Windows 7 system, PHP version 8.1, Dell G3 computer.

Is php only 64-bit?

no.

PHP has 32-bit and 64-bit versions. The biggest difference between the two is the size of the process's address space. The process address space of a 32-bit program is 4G, while the 32-bit program under Windows has a 2G address space in the kernel, and the program actually only has 2G of available memory.

Check whether the PHP version is 32-bit or 64-bit:

Two methods, one is to check the process in the server's process manager. If it is a 64-bit operating system, the 32-bit process will be preceded by *32 is displayed. The general PHP process will die quickly. You can write a small PHP script that waits for input content to be executed, so that the process is maintained and can be viewed.

The second method is to write a script containing phpinfo() and view it on the browser.

Recommended learning: "PHP Video Tutorial"

The above is the detailed content of Is php only 64-bit?. For more information, please follow other related articles on the PHP Chinese website!

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