<?php class Foo { public function __construct(public array $foo = [1, 2, 3], public string $bar = 'baz') {} } var_dump(serialize(new Foo()));
You have javascript disabled. You will not be able to edit any code.