r/PHP • • Sep 08 '20

Article Performance impact of PHP Exceptions

https://php.watch/articles/php-exception-performance
34 Upvotes

44 comments sorted by

View all comments

Show parent comment

4

u/ayeshrajans Sep 09 '20

Because it's sometimes taken as throwing exceptions can be expensive (https://stackoverflow.com/a/104546). This answer is 12 years old, and was written when we didn't have Throwable or as many as exceptions as we'd see in PHP 8.

Also, no offense taken and I am grateful for your constructive comments in this post and previous posts.