gmp_popcount

PHP 4 >= 4.0.4, PHP 5, PHP 7, PHP 8
gmp_popcount - Population count
Manual
Code Examples

Example #1 gmp_popcount example

Result: 3 7
PHP Version: