<?php class Foo { public function __toString() { return 1; } } $f = new Foo(); try { print (string) $f; } catch (\Throwable $e) { var_dump($e); }
You have javascript disabled. You will not be able to edit any code.