proc_terminate

Supported Versions: PHP 5, PHP 7, PHP 8
Kills a process opened by proc_open
<?php proc_terminate(resource $process, int $signal = 15): bool