<?php class A { public function __debugInfo(): array { throw new \Error('x'); } } try { $a = new A(); // print_r($a->__debuginfo()); print_r($a, true); } catch (\Throwable $e) { echo $e->getMessage(); }
You have javascript disabled. You will not be able to edit any code.