<?php function test(){ throw new Exception('error');} try{ test();}catch(Exception $ex){ echo $ex->getMessage();}
Standard input is empty
error
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!