PHP 8.0 changes how loose comparison works – PHP Versions
Lets have a simple PHP script <?php var_dump("php" == 0); According to official documentation (https://www.php.net/manual/en/types.comparisons.php) , this shoud evaulate into true BUT It does, for PHP <=7.4, but no for PHP 8.0 In current version of PHP 8 (8.0.0 -…