<?php class C { public static string $prop; } try { var_dump(C::$prop); } catch (Error $e) { echo $e->getMessage(), "\n"; } try { var_dump(C::$nonExistent); } catch (Error $e) { echo $e->getMessage(), "\n"; } var_dump(C::$prop ?? 'default'); var_dump(C::$nonExistent ?? 'default');
You have javascript disabled. You will not be able to edit any code.