<?php class T { function __toString(){ throw new Exception; } } $t = new T; try { echo strpos('test', $t); } catch (Exception $e) { echo "caught"; }
You have javascript disabled. You will not be able to edit any code.