Php script execution, process creation

// process.php:
<?php
var_dump("process");
sleep(5)
var_dump("process");
:
php process.php
Will

create a process?

Apr.07,2021

the first thing to understand is the concept of a process, which is triggered by the executor.
php xxx.php creates a php process, but this process is not a daemon and will be destroyed as soon as it is executed.
you can use the top command to observe


No, a script in PHP is a process unless you explicitly use the fork process to call the system function inside.

Menu