3v4l.org

run code in 150+ 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 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
foo