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