<?php preg_replace( string|array $pattern, string|array $replacement, string|array $subject, int $limit = -1, int &$count = null): string|array|null
<?php $stderr = $process->getErrorOutput(); $stderr = preg_replace('/\x1b\[[0-9;]*m/', '', $stderr); $output = explode("\n", trim($process->getOutput()));