Empty string comparison to zero gives different result in PHP 8 than in previous versions
You are right, this is a major change. As with any version upgrade, you can find a guide to Migrating to PHP 8.0 in the official PHP manual. If you click on Backward Incompatible Changes you will see that this change is the very first thing on that page: Non-strict comparisons between numbers and non-numeric … Read more