<?php class test { public function __toString() { $e = new Exception('mooo'); echo $e; // throw $e; return null; } } $x = new test; var_dump($x->__toString());
You have javascript disabled. You will not be able to edit any code.