Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Split a string by a string
explode(string $separatorstring $stringint $limit PHP_INT_MAX): array
    private static function extractSource(string $srcLinesint $lineint $srcContextstring $lang, ?string $file, array $frame): EnumStub

    
{

        
$srcLines explode("\n"$srcLines);

        
$src = [];



        for (
$i $line $srcContext$i <= $line $srcContext; ++$i) {
        if ($composerRoot $this->getComposerRoot($href$this->inVendor)) {

            
$this->attr['ellipsis'] = \strlen($href) - \strlen($composerRoot) + 1;

            
$this->attr['ellipsis-type'] = 'path';

            
$this->attr['ellipsis-tail'] = + ($this->inVendor \strlen(implode(''\array_slice(explode(\DIRECTORY_SEPARATORsubstr($href$this->attr['ellipsis'])), 02))) : 0);

        } elseif (
\count($ellipsis explode(\DIRECTORY_SEPARATOR$href))) {

            
$this->attr['ellipsis'] = \strlen(implode(''\array_slice($ellipsis, -2)));

            
$this->attr['ellipsis-type'] = 'path';
            $this->attr['ellipsis'] = \strlen($href) - \strlen($composerRoot) + 1;

            
$this->attr['ellipsis-type'] = 'path';

            
$this->attr['ellipsis-tail'] = + ($this->inVendor \strlen(implode(''\array_slice(explode(\DIRECTORY_SEPARATORsubstr($href$this->attr['ellipsis'])), 02))) : 0);

        } elseif (
\count($ellipsis explode(\DIRECTORY_SEPARATOR$href))) {

            
$this->attr['ellipsis'] = \strlen(implode(''\array_slice($ellipsis, -2)));

            
$this->attr['ellipsis-type'] = 'path';

            
$this->attr['ellipsis-tail'] = 1;
        $pin openssl_pkey_get_public($h);

        
$pin openssl_pkey_get_details($pin)['key'];

        
$pin \array_slice(explode("\n"$pin), 1, -2);

        
$pin base64_decode(implode(''$pin));

        
$pin base64_encode(hash('sha256'$pintrue));
                'length' => <= $cut mb_strlen($str'UTF-8') + $cut 0,

                
'binary' => $bin,

            ];

            
$str $bin && false !== strpos($str"\0") ? [$str] : explode("\n"$str);

            if (isset(
$str[1]) && !isset($str[2]) && !isset($str[1][0])) {

                unset(
$str[1]);

                
$str[0] .= "\n";
                    if (!isset($key[0]) || "\0" !== $key[0]) {

                        
$this->line .= '+'.$bin.$this->style('public'$key).': ';

                    } elseif (
strpos($key"\0"1)) {

                        
$key explode("\0"substr($key1), 2);



                        switch (
$key[0][0]) {

                            case 
'+'// User inserted keys
                            $file method_exists($template'getSourceContext') ? $template->getSourceContext()->getPath() : null;



                            if (
$src) {

                                
$src explode("\n"$src);

                                
$fileExcerpt = [];



                                for (
$i max($line 31), $max min($line 3\count($src)); $i <= $max; ++$i) {