<?php function set_trace(\Throwable $e) { $reflection = new \ReflectionProperty( $e instanceof \Error ? \Error::class : \Exception::class, 'trace' ); $reflection->setAccessible(true); $reflection->setValue($e, \debug_backtrace()); return $e; } function deeper_stack(int $depth, callable $callback, ...$args) { return $depth > 1 ? deeper_stack($depth - 1, $callback, ...$args) : $callback(...$args); } echo deeper_stack(5, 'set_trace', new Error);
You have javascript disabled. You will not be able to edit any code.
Value for `_results` contains invalid data `array`