3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function belette($x = null) { try { if ($x === null) { throw new \Exception('exception'); } return $x; } catch (\Exception $e) { return 'exception'; } finally { return 'finally'; } } var_dump(belette('furet')); var_dump(belette());
Output for 5.6.0 - 7.3.0alpha1
string(7) "finally" string(7) "finally"