3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function will_throw_exception() { throw new Exception('My very best exception'); } try { will_throw_exception(); } catch (Exception $e) { echo 'Caught exception: ' . $e->getMessage(); } finally { echo PHP_EOL."Finally"; }
based on 3u2Wa
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.2.0
Caught exception: My very best exception Finally