Playing With Integers Limits

no-email (Damien Seguy), Damien Seguy
Mon, 19 Sep 2022 00:00:00 +0000

Mathematics have the 'Ramanujan Summation', where the infinite sum of all integers is -1/12.
PHP has the integer overflow. Stay away from the PHP_INT_MAX limits. The code in the illustration is valid with (int) or intval(), on recent PHP versions.