Display the drop-down list

Test of gmp_popcount()

Example #1 : test success
Example #2 : test success
Example #1
$input = [
  
'number' => '10000101',
  
'base' => 2,
  
=> '$a',
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'int' => 3,
  ],
  
'php_version' => '7.1.30 Linux x86_64',
]
Example #2
$input = [
  
'number' => '11111110',
  
'base' => 2,
  
=> '$a',
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'int' => 7,
  ],
  
'php_version' => '7.1.30 Linux x86_64',
]