- var_dump: documentation ( source)
<?php
class Test {
private $n;
public function __construct() {
;
}
public function doSomething(){
echo "Done testing{$this->n}";
}
}
$o1 = (new Test($a = 8))->doSomething();
var_dump($a);