b_viguier, French TIL: in #Php, you can create a new instance (not a clone) of an object from an existing instance with the following syntax:
$a1 = new A();
$a2 = new $a1();Very convenient with anonymous classes! Just a bit confusing if you expect $a1() to call the A::__invoke magic method (because it won’t)