<?php class Test { public function __construct(){} public function showRes(){ echo "Done\n"; } } $o = (new Test( $a = 8 ))->showRes();// Done var_dump( $a ); // int(8)
You have javascript disabled. You will not be able to edit any code.