- var_dump: documentation ( source)
<?php
class x
{
public function __construct()
{
$x = '';
$x .= $this;
$x = new stdClass;
var_dump($this);
}
public function __toString() {
echo 'aw my gawd';
}
}
var_dump(new x);