Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Finds whether a variable is an array
is_array(mixed $value): bool
            ->explode("\n")

            ->
filter()

            ->
each(function ($output) {

                if (! 
is_array($debug json_decode($outputtrue))) {

                    return 
$this->info($output);

                }
                    return $this->info($output);

                }



                if (
is_array($stream json_decode($debug['msg'], true))) {

                    return 
$this->handleStream($stream);

                }
        Str::of($server->getIncrementalOutput())

            ->
explode("\n")

            ->
filter()

            ->
each(fn ($output) => is_array($stream json_decode($outputtrue))

                ? 
$this->handleStream($stream)

                : 
$this->info($output)

            );
            ->filter()

            ->
groupBy(fn ($output) => $output)

            ->
each(function ($group) {

                
is_array($stream json_decode($output $group->first(), true)) && isset($stream['type'])

                    ? 
$this->handleStream($stream)

                    : 
$this->raw($output);

            });