--TEST-- Throwings NEWs should not be DCEd --INI-- opcache.enable_cli=1 opcache.optimization_level=-1 --EXTENSIONS-- opcache --FILE-- getMessage(), "\n"; } try { test2(); } catch (Error $e) { echo $e->getMessage(), "\n"; } try { test3(); } catch (Error $e) { echo $e->getMessage(), "\n"; } try { test4(); } catch (Error $e) { echo $e->getMessage(), "\n"; } ?> --EXPECT-- Cannot instantiate abstract class Foo Cannot instantiate interface Bar Cannot instantiate trait Baz Cannot declare self-referencing constant Abc::BAR