<?php class Bar { public function __toString() { return __CLASS__; } } class Foo { public function __toString() { return new Bar(); } } var_dump((string) (new Foo()));
You have javascript disabled. You will not be able to edit any code.