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

1

u/colshrapnel Sep 09 '20

If I don't, why should I care about the article at whole? No offense meant, just I want to understand the logic: why would you write an article about something I shouldn't worry about?

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.