<?php class Test { public function doSomething(){ echo "Done testing\n"; } } $o1 = (new Test($a = 8))->doSomething();// Done testing var_dump($a); // Notice - undefined variable: a
You have javascript disabled. You will not be able to edit any code.