3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function run() { try { throw Exception ('a'); } finally { throw Exception ('b'); } } try { run(); } Catch (Exception $e) { var_dump($e->getMessage(), $e->getPrevious()->getMessage()); }
based on 2uatj