3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php try{ try{ throw new Exception("A"); }catch(Exception $a){ throw $a; }finally{ throw new Exception("B"); } }catch(Exception $e){ var_dump($e); }
based on l9bph
Output for 5.5.24 - 7.2.0
object(Exception)#2 (7) { ["message":protected]=> string(1) "B" ["string":"Exception":private]=> string(0) "" ["code":protected]=> int(0) ["file":protected]=> string(9) "/in/kuF1A" ["line":protected]=> int(9) ["trace":"Exception":private]=> array(0) { } ["previous":"Exception":private]=> object(Exception)#1 (7) { ["message":protected]=> string(1) "A" ["string":"Exception":private]=> string(0) "" ["code":protected]=> int(0) ["file":protected]=> string(9) "/in/kuF1A" ["line":protected]=> int(5) ["trace":"Exception":private]=> array(0) { } ["previous":"Exception":private]=> NULL } }
Output for 5.3.19 - 5.4.45
Parse error: syntax error, unexpected '{' in /in/kuF1A on line 8
Process exited with code 255.