Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Prepend one or more elements to the beginning of an array
array_unshift(array &$arraymixed ...$values): int
        if (isset($trace[0]['file'], $trace[0]['line']) && $trace[0]['file'] === $file && $trace[0]['line'] === $line) {

            return;

        }

        
array_unshift($trace, [

            
'function' => $class 'new '.$class null,

            
'file' => $file,

            
'line' => $line,

        ]);

    }



    private static function 
extractSource(string $srcLinesint $lineint $srcContextstring $lang, ?string $file, array $frame): EnumStub
        ];

        if (
$trace $c->getTrace(\DEBUG_BACKTRACE_IGNORE_ARGS)) {

            
$function = new \ReflectionGenerator($c->getExecutingGenerator());

            
array_unshift($trace, [

                
'function' => 'yield',

                
'file' => $function->getExecutingFile(),

                
'line' => $function->getExecutingLine() - (int) (\PHP_VERSION_ID 80100),

            ]);

            
$trace[] = $frame;

            
$a[$prefix.'trace'] = new TraceStub($tracefalse0, -1, -1);

        } else {