3v4l.org

run code in 300+ PHP versions simultaneously
<?php function eh($type, $message, $file, $line, $context) { unset($context['GLOBALS']); throw new Exception(); } set_error_handler('eh'); try { $a->b; } catch (\Exception $e) { $trace = $e->getTrace(); $trace = $trace[0]['args'][4]; echo isset($trace['GLOBALS']); }

preferences:
29.82 ms | 402 KiB | 5 Q