<?php echo "Using plain class\n"; class A {}; $a = new A(); $a->foo = 'bar'; echo "Extending from stdClass\n"; class B extends stdClass {}; $b = new B(); $b->foo = 'bar'; echo "Using PHP attribute\n"; #[\AllowDynamicProperties] class C {}; $c = new C(); $c->foo = 'bar';
You have javascript disabled. You will not be able to edit any code.
Value for `_results` contains invalid data `array`