<?php $c = new class { public function hello() { echo "hello"; } }; $c->hello(); $d = new class(42) { public function __construct($n) {} public function hello() { echo "hello"; } }; $d->hello();
You have javascript disabled. You will not be able to edit any code.