3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class CSqlException extends Exception { public function __construct($p_Message, $p_Code=0) { parent::__construct($p_Message, $p_Code); } } try { throw new CsqlException('foo', 1); } catch (Exception $e) { echo $e->getMessage(); }
Output for 5.2.12 - 7.2.0
foo