<?php class c1 { public function get() { return new class(){}; } } $c = new c1(); var_dump($c->get());
You have javascript disabled. You will not be able to edit any code.