<?php class Foo { public function __toString() { static $i = 0; return (string) $i++; } } function test(string $foo = new Foo()) { var_dump($foo); } test(); test(); test();
You have javascript disabled. You will not be able to edit any code.