original_string: public static function binToDec($bin, $length = 0)
      {
          $gmp = gmp_init($bin, 2);
          $dec = gmp_strval($gmp, 10);
  
          return self::pad($dec, $length);
      }
code: public static function binToDec($bin, $length = 0)
      {
          $gmp = gmp_init($bin, 2);
          $dec = gmp_strval($gmp, 10);
  
          return self::pad($dec, $length);
      }
code_tokens: public static function binToDec ( $ bin , $ length = 0 ) { $ gmp = gmp_init ( $ bin , 2 ) ; $ dec = gmp_strval ( $ gmp , 10 ) ; return self :: pad ( $ dec , $ length ) ; }
docstring: Converts binary string into decimal string.
  
  @param string $bin    Binary string.
  @param int    $length Minimum output length.
  
  @return string Decimal string.
docstring_tokens: Converts binary string into decimal string .