<?php $test = new class { public $user = "XYZ"; public function getUser() { return $this->user; } }; var_dump($test); echo $test->getUser();
You have javascript disabled. You will not be able to edit any code.