<?php try{ $a = new class { public function func():self{return "";} }; (null)->getSome(); //$res = $a->func(); var_dump($res); }catch(Throwable $ex){ echo "Catched error" .$ex->getMessage(); }
You have javascript disabled. You will not be able to edit any code.