In PHP why can\'t I do:
class C { function foo() {} } new C()->foo();
but I must do:
$v = new C(); $v->foo();
I tried this and was successful -