<?php error_reporting(E_ALL); ini_set('display_errors',1); function callMe(){ throw new Exception('I am an exception'); return 'I RETURNED A STRING'; } try { var_dump(callMe()); } catch (\Exception $e){ var_dump($e); } // try uncatched also var_dump(callMe());
You have javascript disabled. You will not be able to edit any code.